Logo Search packages:      
Sourcecode: gnome-mousetrap version File versions  Download package

def mouseTrap::dialogs::ClicksDialog::showPanel (   self  ) 

Shows the panel

Arguments:
- self: The main object pointer.

Definition at line 273 of file dialogs.py.

00273                          :
        """
        Shows the panel
        
        Arguments:
        - self: The main object pointer.
        """
        
        X = Y = 0
        
        poss = mouseTrap.mice( "position" )
        
        # We'll change the click panel position to be sure that
        # it won't appear under another window or worse under a 
        # popup menu.
        if poss[0] in xrange( env.screen["width"]/2 ):
            X = env.screen["width"] - self.width
            
        
        if poss[1] in xrange( env.screen["height"]/2 ):
            Y = env.screen["height"] - self.height
            
        
        self.move(X, Y)
        
        if self.get_focus():
            self.buttons[ self.buttons.index(self.get_focus()) ].get_child().modify_bg( gtk.STATE_NORMAL, 
                                                                                        gtk.gdk.color_parse(self.blue))
        
        self.set_focus(self.buttons[0])
        self.buttons[0].get_child().modify_bg( gtk.STATE_NORMAL, gtk.gdk.color_parse(self.green))
        self.show_all()
        
        mouseTrap.setState( "clk-dialog" )
    
    def hidePanel( self, *args ):


Generated by  Doxygen 1.6.0   Back to index