commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/forms/src/uidrivers/gtk2/widgets box.py


From: Jan Ischebeck
Subject: gnue/forms/src/uidrivers/gtk2/widgets box.py
Date: Sun, 01 Jun 2003 11:58:53 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jan Ischebeck <address@hidden>  03/06/01 11:58:53

Modified files:
        forms/src/uidrivers/gtk2/widgets: box.py 

Log message:
        close ticket #182
        box is drawn by gtk2 frontend now

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/uidrivers/gtk2/widgets/box.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gnue/forms/src/uidrivers/gtk2/widgets/box.py
diff -c gnue/forms/src/uidrivers/gtk2/widgets/box.py:1.1 
gnue/forms/src/uidrivers/gtk2/widgets/box.py:1.2
*** gnue/forms/src/uidrivers/gtk2/widgets/box.py:1.1    Sat May 17 10:46:04 2003
--- gnue/forms/src/uidrivers/gtk2/widgets/box.py        Sun Jun  1 11:58:52 2003
***************
*** 19,25 ****
  # Copyright 2000-2003 Free Software Foundation
  #
  # FILE:
! # UIwxpython.py
  #
  # DESCRIPTION:
  # A wxPython based user interface driver for GNUe forms.
--- 19,25 ----
  # Copyright 2000-2003 Free Software Foundation
  #
  # FILE:
! # gtk2/widgets/box.py
  #
  # DESCRIPTION:
  # A wxPython based user interface driver for GNUe forms.
***************
*** 37,50 ****
  class UIBox(UIHelper):
      
    def _createWidget(self, event, spacer):
-     return None
- 
      object = event.object
!     newWidget = wxStaticBox(event.container,-1,str(object.label),
!                        
wxPoint(object.Char__x*event.widgetWidth+(event.widgetWidth/2),
!                                
(object.Char__y+spacer+(spacer*object._gap))*event.widgetHeight+(event.widgetHeight/2)),
!                        wxSize((object.Char__width-1)*event.widgetWidth,
!                                (object.Char__height-1)*event.widgetHeight))
      return newWidget
  
  #
--- 37,54 ----
  class UIBox(UIHelper):
      
    def _createWidget(self, event, spacer):
      object = event.object
!     
!     newWidget = gtk.Frame()
!     newWidget.set_size_request(self.itemWidth - 1 * event.widgetWidth,
!                                self.itemHeight)
!     
!     newWidget.modify_font(self._uiDriver.mono_font)
!     newWidget.set_label(str(object.label))
! 
!     event.container.put(newWidget, (object.Char__x+0.5) * event.widgetWidth,
!       (object.Char__y + spacer) * event.widgetHeight)
! 
      return newWidget
  
  #




reply via email to

[Prev in Thread] Current Thread [Next in Thread]