Пример #1
0
 def image(self, widget):
     from common import getFile
     
     image = gtk.Image()
     image.set_from_file(getFile('wallpaper.png'))
     
     widget.pack_start(image, expand = False, fill = False, padding = 0)
Пример #2
0
    def image(self, widget):
        from common import getFile

        image = gtk.Image()
        image.set_from_file(getFile('wallpaper.png'))

        widget.pack_start(image, expand=False, fill=False, padding=0)
Пример #3
0
    def __init__(self):
        super(AboutDialog, self).__init__()

        self.set_comments(SUMMARY)
        self.set_name(APPNAME)
        self.set_authors(AUTHORS.split('\n'))
        self.set_translator_credits(TRANSLATOR_CREDITS)
        self.set_version(VERSION)
        self.set_license(LICENSE)
        #~ gtk.about_dialog_set_url_hook(lambda self, url: url_show(url))
        self.set_website(WEBSITE)
        self.set_website_label(WEBSITE)
        self.set_copyright(COPYRIGHT)
        self.set_logo(gtk.gdk.pixbuf_new_from_file(getFile("kaptan-logo.png")))
        self.set_icon(gtk.gdk.pixbuf_new_from_file(getFile("kaptan-logo.png")))

        self.show_all()
        self.run()
        self.destroy()
Пример #4
0
    def __init__(self):
        super(AboutDialog, self).__init__()

        self.set_comments(SUMMARY)
        self.set_name(APPNAME)
        self.set_authors(AUTHORS.split('\n'))
        self.set_translator_credits(TRANSLATOR_CREDITS)
        self.set_version(VERSION)
        self.set_license(LICENSE)
        #~ gtk.about_dialog_set_url_hook(lambda self, url: url_show(url))
        self.set_website(WEBSITE)
        self.set_website_label(WEBSITE)
        self.set_copyright(COPYRIGHT)
        self.set_logo(gtk.gdk.pixbuf_new_from_file(getFile("kaptan-logo.png")))
        self.set_icon(gtk.gdk.pixbuf_new_from_file(getFile("kaptan-logo.png")))

        self.show_all()
        self.run()
        self.destroy()
Пример #5
0
    def __init__(self):
        self.page_number = 0

        self.builder = gtk.Builder()
        self.builder.add_from_file(getFile('kaptan-xfce.glade'))
        self.builder.connect_signals({
            'gtk_main_quit': gtk.main_quit,
            'on_about_button_clicked': self.aboutDialog,
            'on_button_next_clicked': self.nextPage,
            'on_button_previous_clicked': self.previousPage,
            })

        self.main_window = self.builder.get_object('main_window')
        self.main_window.show_all()

        self.content(self.builder, self.page_number)
Пример #6
0
    def __init__(self):
        self.page_number = 0

        self.builder = gtk.Builder()
        self.builder.add_from_file(getFile('kaptan-xfce.glade'))
        self.builder.connect_signals({
            'gtk_main_quit':
            gtk.main_quit,
            'on_about_button_clicked':
            self.aboutDialog,
            'on_button_next_clicked':
            self.nextPage,
            'on_button_previous_clicked':
            self.previousPage,
        })

        self.main_window = self.builder.get_object('main_window')
        self.main_window.show_all()

        self.content(self.builder, self.page_number)
Пример #7
0
    def welcomeImage(self, widget):
        from common import getFile

        image = gtk.Image()
        image.set_from_file(getFile('kaptan_welcome.png'))
        widget.pack_start(image, expand = False, fill = True, padding = 0)