def popup_color_selection_dialog(self, widget, event): ''' Internal function to popup color selection dialog when user click on button. @param widget: ColorButton widget. @param event: Button press event. ''' dialog = ColorSelectDialog(self.select_color) dialog.show_all() place_center(self.get_toplevel(), dialog)
def popup_color_selection_dialog(self, widget, event): ''' Internal function to popup color selection dialog when user click on button. @param widget: ColorButton widget. @param event: Button press event. ''' dialog = ColorSelectDialog(self.color, self.select_color) dialog.show_all() place_center(self.get_toplevel(), dialog)
def place_center(self, window=None): ''' Place dialog at center place. @param window: Place dialog at screen center place if window is None, otherwise place center place of given window. ''' if window == None: self.set_position(gtk.WIN_POS_CENTER) else: place_center(self, window)
def theme_callback(self, widget): ''' Invoked when the theme button is clicked. @param widget: Not used. @return: Always return False ''' skin_window = SkinWindow(self.skin_preview_pixbuf) skin_window.show_all() place_center(self.window, skin_window) return False
def theme_callback(self, widget): '''Theme button callback.''' skin_window = SkinWindow(self.skin_preview_pixbuf) skin_window.show_all() skin_window.connect("show", lambda w: place_center(self.window, w)) return False
def theme_callback(self, widget): """ Invoked when the theme button is clicked. @param widget: Not used. @return: Always return False """ skin_window = SkinWindow(self.skin_preview_pixbuf) skin_window.show_all() skin_window.connect("show", lambda w: place_center(self.window, w)) return False
def popup_color_selection_dialog(self, widget, event): '''Popup color selection dialog.''' dialog = ColorSelectDialog(self.select_color) dialog.show_all() place_center(self.get_toplevel(), dialog)