Example #1
0
 def __init__(self, assistant):
     Page.__init__(self, assistant=assistant, label="Mode", pagetype=Gtk.AssistantPageType.CONTENT)
             
     ccgui.ui.add_section_title(self, "Mode")
     
     l = ccgui.ui.add_label(self, "Descriptive text.\n\nLua support needs to be built into Conky to correctly display for but Default.")
     ccgui.ui.add_wide_control(self,l)
     
     l = ccgui.ui.add_label(self, "Layout Mode:")
     modes = Gtk.ListStore(str)
     modes.append(["Default"])
     modes.append(["Board"])
     modes.append(["Cairo"])
     modes.append(["Ring"])
     modes.append(["Slim"])
     modes.append(["SLS"])
     
     """
     We can hook up the combobox to the image so that the preview shows the selected mode.
     """
     self.mode = Gtk.ComboBoxText(halign = Gtk.Align.START,
                                                hexpand=True)
     self.mode.set_model(modes)
     self.mode.set_active(0)
             
     ccgui.ui.add_row(self, l, self.mode)
             
     image = Gtk.Image()
     #image.set_from_file("/usr/share/ccgui/conkypreview.png")
     image.set_from_file(ccgui.common.get_image("conkypreview.png"))
     ccgui.ui.add_wide_control(self,image)
Example #2
0
 def __init__(self, assistant):
     Page.__init__(self, assistant=assistant, label="Summary", pagetype=Gtk.AssistantPageType.SUMMARY) 
     l = ccgui.ui.add_label(self, "<b>Configuration Complete</b>\nSay something magical about what's happened and provide update advice.")
     l.set_vexpand(True)
     ccgui.ui.add_wide_control(self,l)
Example #3
0
 def __init__(self, assistant):
     Page.__init__(self, assistant=assistant, label="Introduction", pagetype=Gtk.AssistantPageType.INTRO)
     l = ccgui.ui.add_label(self, "<b>Conky-Colors Configuration Wizard</b>\nThis wizard will guide you through configuring the display options of Conky-Colors.")
     l.set_vexpand(True)
     ccgui.ui.add_wide_control(self,l)
Example #4
0
 def __init__(self, assistant):
     Page.__init__(self, assistant=assistant, label="Confirmation", pagetype=Gtk.AssistantPageType.CONFIRM)
     l = ccgui.ui.add_label(self, "<b>Are you sure you want to continue?</b>\nApplying these changes will overide the current configuration.")
     l.set_vexpand(True)
     ccgui.ui.add_wide_control(self,l)