Esempio n. 1
0
 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)
Esempio n. 2
0
    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)
Esempio n. 3
0
 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)
Esempio n. 4
0
    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)
Esempio n. 5
0
    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
Esempio n. 6
0
    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
Esempio n. 7
0
    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
Esempio n. 8
0
    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
Esempio n. 9
0
 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)