[Sugar-devel] [record] Fixes to the UI

Martin Dengler martin at martindengler.com
Sun Jun 6 22:02:18 EDT 2010


On Mon, Jun 07, 2010 at 12:04:18AM +0530, anishmangal2002 at gmail.com wrote:
[...]
> @@ -884,6 +939,10 @@ class UI:
>                      kids[i].setButtClickedId(BUTT_CLICKED_ID)
>  
>  
> +    def actuallyHideAllWindows( self ):
> +        for i in range (0, len(self.windowStack)):
> +            self.windowStack[i].hide_all()
> +
>      def hideAllWindows( self ):
>          for i in range (0, len(self.windowStack)):
>              self.moveWinOffscreen( self.windowStack[i] )

Why don't you just fix hideAllWindows()?

> @@ -1913,22 +2036,22 @@ class ScrubberWindow(gtk.Window):
>          self.add( self.hbox )
>  
>          self.button = gtk.Button()
> -        buttBox = gtk.EventBox()
> -        buttBox.add(self.button)
> -        buttBox.modify_bg( gtk.STATE_NORMAL, Constants.colorBlack.gColor )
> +        self.buttBox = gtk.EventBox()
> +        self.buttBox.add(self.button)
> +        self.buttBox.modify_bg( gtk.STATE_NORMAL, Constants.colorBlack.gColor )

great variable name that you inherited, there...might as well rename
it to something more standard like "buttonBox" while you're at it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100607/d65f42f3/attachment.pgp 


More information about the Sugar-devel mailing list