- self.clockNotebook = gtk.Notebook()
- self.clockNotebook.set_tab_pos(gtk.POS_TOP)
- self.clockNotebook.set_current_page(0)
-
- self.clockNotebook.append_page(self.tableClockDisplays, gtk.Label("Clock Display"))
- self.clockNotebook.append_page(self.tableClockSettings, gtk.Label("Clock Settings"))
-
- # Add pages to notebook
- self.notebook.append_page(self.tableBgs, gtk.Label("Backgrounds"))
- self.notebook.append_page(self.panelNotebook, gtk.Label("Panel"))
- self.notebook.append_page(self.tableTaskbar, gtk.Label("Taskbar"))
- self.notebook.append_page(self.taskNotebook, gtk.Label("Tasks"))
- self.notebook.append_page(self.tableTray, gtk.Label("System Tray"))
- self.notebook.append_page(self.clockNotebook, gtk.Label("Clock"))
- self.notebook.append_page(self.tableMouse, gtk.Label("Mouse"))
- self.notebook.append_page(self.tableTooltip, gtk.Label("Tooltips"))
- self.notebook.append_page(self.tableBattery, gtk.Label("Battery"))
- self.notebook.append_page(self.configArea, gtk.Label("View Config"))
-
- self.notebook.connect("switch-page", self.switchPage)
-
- # Add notebook to window and show
- self.table.attach(self.notebook, 0, 4, 2, 3, xpadding=5, ypadding=5)
-
- if self.oneConfigFile:
- # Add button Apply and Close
- self.box1 = gtk.HBox(False, 20)
- self.table.attach(self.box1, 0, 4, 3, 4, xpadding=5, ypadding=5)
- temp = gtk.Button("Apply", gtk.STOCK_APPLY)
- temp.set_name("applyBg")
- temp.connect("clicked", self.apply)
- self.box1.pack_start(temp, True, True, 0)
- temp = gtk.Button("Close", gtk.STOCK_CLOSE)
- temp.set_name("closeBg")
- temp.connect("clicked", self.quit)
- self.box1.pack_start(temp, True, True, 0)
-
- # Create and add the status bar to the bottom of the main window
- self.statusBar = gtk.Statusbar()
- self.statusBar.set_has_resize_grip(True)
- self.updateStatusBar("New Config File [*]")
- self.table.attach(self.statusBar, 0, 4, 4, 5)
-
- self.add(self.table)
-
- self.show_all()
-
- # Create our property dictionary. This holds the widgets which correspond to each property
- self.propUI = {
- "panel_monitor": self.panelMonitor,
- "panel_position": (self.panelPosY, self.panelPosX, self.panelOrientation),
- "panel_size": (self.panelSizeX, self.panelSizeY),
- "panel_margin": (self.panelMarginX, self.panelMarginY),
- "panel_padding": (self.panelPadX, self.panelPadY, self.panelSpacing),
- "wm_menu": self.panelMenu,
- "panel_layer": self.panelLayer,
- "panel_dock": self.panelDock,
- "panel_background_id": self.panelBg,
- "autohide": self.panelAutohide,
- "autohide_show_timeout": self.panelAutohideShow,
- "autohide_hide_timeout": self.panelAutohideHide,
- "autohide_height": self.panelAutohideHeight,
- "strut_policy": self.panelAutohideStrut,
- "taskbar_mode": self.taskbarMode,
- "taskbar_padding": (self.taskbarPadX, self.taskbarPadY, self.taskbarSpacing),
- "taskbar_background_id": self.taskbarBg,
- "taskbar_active_background_id": self.taskbarActiveBg,
- "task_icon": self.taskIconCheckButton,
- "task_text": self.taskTextCheckButton,
- "task_centered": self.taskCentreCheckButton,
- "task_maximum_size": (self.taskMaxSizeX, self.taskMaxSizeY),
- "task_padding": (self.taskPadX, self.taskPadY),
- "task_background_id": self.taskBg,
- "task_active_background_id": self.taskActiveBg,
- "task_urgent_background_id": self.taskUrgentBg,
- "task_iconified_background_id": self.taskIconifiedBg,
- "task_font": self.fontButton,
- "task_font_color": (self.fontCol, self.fontColButton),
- "task_active_font_color": (self.fontActiveCol, self.fontActiveColButton),
- "task_urgent_font_color": (self.fontUrgentCol, self.fontUrgentColButton),
- "task_iconified_font_color": (self.fontIconifiedCol, self.fontIconifiedColButton),
- "task_icon_asb": (self.iconHue, self.iconSat, self.iconBri),
- "task_active_icon_asb": (self.activeIconHue, self.activeIconSat, self.activeIconBri),
- "task_urgent_icon_asb": (self.urgentIconHue, self.urgentIconSat, self.urgentIconBri),
- "task_iconified_icon_asb": (self.iconifiedIconHue, self.iconifiedIconSat, self.iconifiedIconBri),
- "font_shadow": self.fontShadowCheckButton,
- "systray": self.trayShow,
- "systray_padding": (self.trayPadX, self.trayPadY, self.traySpacing),
- "systray_background_id": self.trayBg,
- "systray_sort": self.trayOrder,
- "systray_icon_size": self.trayMaxIconSize,
- "systray_icon_asb": (self.trayIconHue, self.trayIconSat, self.trayIconBri),
- "time1_format": self.clock1Format,
- "time2_format": self.clock2Format,
- "clock_tooltip": self.clockTooltipFormat,
- "time1_font": self.clock1FontButton,
- "time2_font": self.clock2FontButton,
- "clock_font_color": (self.clockFontCol, self.clockFontColButton),
- "clock_padding": (self.clockPadX, self.clockPadY),
- "clock_background_id": self.clockBg,
- "clock_lclick_command": self.clockLClick,
- "clock_rclick_command": self.clockRClick,
- "time1_timezone": self.clockTime1Timezone,
- "time2_timezone": self.clockTime2Timezone,
- "clock_tooltip_timezone": self.clockTooltipTimezone,
- "mouse_middle": self.mouseMiddle,
- "mouse_right": self.mouseRight,
- "mouse_scroll_up": self.mouseUp,
- "mouse_scroll_down": self.mouseDown,
- "tooltip": self.tooltipShow,
- "tooltip_padding": (self.tooltipPadX, self.tooltipPadY),
- "tooltip_show_timeout": self.tooltipShowTime,
- "tooltip_hide_timeout": self.tooltipHideTime,
- "tooltip_background_id": self.tooltipBg,
- "tooltip_font": self.tooltipFont,
- "tooltip_font_color": (self.tooltipFontCol, self.tooltipFontColButton),
- "battery": self.batteryCheckButton,
- "battery_low_status": self.batteryLow,
- "battery_low_cmd": self.batteryLowAction,
- "battery_hide": self.batteryHide,
- "bat1_font": self.bat1FontButton,
- "bat2_font": self.bat2FontButton,
- "battery_font_color": (self.batteryFontCol, self.batteryFontColButton),
- "battery_padding": (self.batteryPadX, self.batteryPadY),
- "battery_background_id": self.batteryBg
- }
-
- if self.oneConfigFile:
- self.readTint2Config()
-
- self.generateConfig()
-