def test_show_image_dialog(self):
     from softwarecenter.ui.gtk3.widgets.imagedialog import SimpleShowImageDialog
     if os.path.exists("../../data/images/arrows.png"):
         f = "../../data/images/arrows.png"
     else:
         f = "../data/images/arrows.png"
     pix = GdkPixbuf.Pixbuf.new_from_file(f)
     d = SimpleShowImageDialog("test caption", pix)
     GObject.timeout_add(TIMEOUT, lambda: d.destroy())
     d.run()
Beispiel #2
0
 def test_show_image_dialog(self):
     f = os.path.join(DATA_DIR, "test_images", "fallback.png")
     pix = GdkPixbuf.Pixbuf.new_from_file(f)
     d = SimpleShowImageDialog("test caption", pix)
     GLib.timeout_add(TIMEOUT, lambda: d.destroy())
     d.run()
Beispiel #3
0
 def test_show_image_dialog(self):
     f = os.path.join(DATA_DIR, "test_images", "fallback.png")
     pix = GdkPixbuf.Pixbuf.new_from_file(f)
     d = SimpleShowImageDialog("test caption", pix)
     GLib.timeout_add(TIMEOUT, lambda: d.destroy())
     d.run()