Ejemplo n.º 1
0
    def __init__(self):

        gtk.Dialog.__init__(self, red_main.get_title())

        b = self.add_button(gtk.STOCK_OK, gtk.RESPONSE_CLOSE)
        b.connect("clicked", lambda b, w: w.destroy(), self)

        hbox = gtk.HBox(spacing=6)
        self.vbox.pack_start(hbox, padding=6)

        vbox = gtk.VBox(spacing=2)
        hbox.pack_start(vbox, padding=6)

        title = gtk.Label("")
        title.set_alignment(0.0, 0.5)
        title.set_markup('<span size="xx-large"><b>%s</b></span>' %
                         red_main.red_name)

        vbox.pack_start(title)

        copyright = gtk.Label(red_main.red_copyright.encode("utf-8"))
        copyright.set_alignment(0.0, 0.5)
        vbox.pack_start(copyright)

        license = gtk.Label(
            _("Licensed under the GNU "
              "General Public License, version 2"))
        license.set_alignment(0.0, 0.5)
        vbox.pack_start(license)

        self.vbox.show_all()
Ejemplo n.º 2
0
    def set_title(self, component=None):
        buf = ""
        if component:
            buf += component + " - "

        buf += red_main.get_title()

        gtk.Window.set_title(self, buf)
Ejemplo n.º 3
0
    def set_title(self, component=None):
        buf = ""
        if component:
            buf += component + " - "

        buf += red_main.get_title()

        gtk.Window.set_title(self, buf)
Ejemplo n.º 4
0
    def __init__(self):
        gtk.Dialog.__init__(self, red_main.get_title())

        self.set_icon(red_pixbuf.get_pixbuf("red-carpet"))

        self.local = 1

        self.data = red_settings.DaemonData()
        self.build()
        self.populate()