[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7226 - in trunk/gnue-forms/src/uidrivers/gtk2: . widgets widgets
From: |
johannes |
Subject: |
[gnue] r7226 - in trunk/gnue-forms/src/uidrivers/gtk2: . widgets widgets/form |
Date: |
Sat, 19 Mar 2005 12:14:43 -0600 (CST) |
Author: johannes
Date: 2005-03-19 12:14:42 -0600 (Sat, 19 Mar 2005)
New Revision: 7226
Modified:
trunk/gnue-forms/src/uidrivers/gtk2/SplashScreen.py
trunk/gnue-forms/src/uidrivers/gtk2/ToolBar.py
trunk/gnue-forms/src/uidrivers/gtk2/widgets/_base.py
trunk/gnue-forms/src/uidrivers/gtk2/widgets/entry.py
trunk/gnue-forms/src/uidrivers/gtk2/widgets/form/widget.py
Log:
Use True/False instead of gkt.TRUE/gtk.False
Modified: trunk/gnue-forms/src/uidrivers/gtk2/SplashScreen.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/gtk2/SplashScreen.py 2005-03-19 00:30:20 UTC
(rev 7225)
+++ trunk/gnue-forms/src/uidrivers/gtk2/SplashScreen.py 2005-03-19 18:14:42 UTC
(rev 7226)
@@ -42,10 +42,10 @@
bitmapFile=images_dir+gConfigForms('splashScreenPNG')
- gtk.Window.__init__(self,gtk.TRUE)
+ gtk.Window.__init__(self, True)
# not the best, but working decision
self.connect('destroy', lambda win: self.hide())
- self.set_resizable(gtk.TRUE)
+ self.set_resizable(True)
self.resize(525,200)
self.set_modal(1)
self.set_position(1) # for center
Modified: trunk/gnue-forms/src/uidrivers/gtk2/ToolBar.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/gtk2/ToolBar.py 2005-03-19 00:30:20 UTC
(rev 7225)
+++ trunk/gnue-forms/src/uidrivers/gtk2/ToolBar.py 2005-03-19 18:14:42 UTC
(rev 7226)
@@ -42,7 +42,7 @@
self.toolbar.set_orientation (gtk.ORIENTATION_HORIZONTAL)
self.toolbar.set_style (gtk.TOOLBAR_ICONS)
- self.toolbar.set_tooltips (gtk.TRUE)
+ self.toolbar.set_tooltips (True)
handlebox.add (self.toolbar)
self.container.content_table.attach (handlebox,
Modified: trunk/gnue-forms/src/uidrivers/gtk2/widgets/_base.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/gtk2/widgets/_base.py 2005-03-19
00:30:20 UTC (rev 7225)
+++ trunk/gnue-forms/src/uidrivers/gtk2/widgets/_base.py 2005-03-19
18:14:42 UTC (rev 7226)
@@ -147,7 +147,7 @@
if _formRef._currentEntry == gfObject and \
self.widgets.index (lookupWidget) == gfObject._visibleIndex:
gDebug (6, "SKIPPING since we already have the focus!")
- return gtk.FALSE
+ return False
if _formRef._currentEntry != gfObject:
action = events.Event ('requestFOCUS', gfObject, _form = _formRef)
@@ -159,7 +159,7 @@
action = events.Event ('requestJUMPRECORD', adjust, _form = _formRef)
self._eventHandler (action)
- return gtk.FALSE
+ return False
# ---------------------------------------------------------------------------
Modified: trunk/gnue-forms/src/uidrivers/gtk2/widgets/entry.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/gtk2/widgets/entry.py 2005-03-19
00:30:20 UTC (rev 7225)
+++ trunk/gnue-forms/src/uidrivers/gtk2/widgets/entry.py 2005-03-19
18:14:42 UTC (rev 7226)
@@ -410,7 +410,7 @@
else:
widget.get_toplevel ().child_focus (gtk.DIR_TAB_FORWARD)
- return gtk.TRUE
+ return True
elif event.keyval == gtk.keysyms.Up:
tBuffer = widget.get_buffer ()
@@ -422,10 +422,10 @@
else:
widget.get_toplevel ().child_focus (gtk.DIR_TAB_BACKWARD)
- return gtk.TRUE
+ return True
# Key not handled, leave it up to the common handler
- return gtk.FALSE
+ return False
# ---------------------------------------------------------------------------
@@ -448,7 +448,7 @@
self._eventHandler (action)
- return gtk.TRUE
+ return True
# ---------------------------------------------------------------------------
Modified: trunk/gnue-forms/src/uidrivers/gtk2/widgets/form/widget.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/gtk2/widgets/form/widget.py 2005-03-19
00:30:20 UTC (rev 7225)
+++ trunk/gnue-forms/src/uidrivers/gtk2/widgets/form/widget.py 2005-03-19
18:14:42 UTC (rev 7226)
@@ -71,8 +71,8 @@
# The main frame of this form
if self._form.style != 'dialog':
self.mainWindow = gtk.Window ()
- self.mainWindow.set_resizable (gtk.TRUE)
- self.content_table = gtk.Table (4, 1, gtk.FALSE)
+ self.mainWindow.set_resizable (True)
+ self.content_table = gtk.Table (4, 1, False)
self.mainWindow.add (self.content_table)
self.containerFrame = gtk.Frame ()
@@ -86,10 +86,10 @@
else:
self.mainWindow = gtk.Dialog (flags = gtk.DIALOG_NO_SEPARATOR |
gtk.DIALOG_DESTROY_WITH_PARENT)
- self.mainWindow.set_resizable (gtk.TRUE)
+ self.mainWindow.set_resizable (True)
self.mainWindow.action_area.set_size_request (-1, 0)
- self.content_table = gtk.Table (4, 1, gtk.FALSE)
+ self.content_table = gtk.Table (4, 1, False)
self.containerFrame = gtk.Frame ()
self.content_table.attach (self.containerFrame,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7226 - in trunk/gnue-forms/src/uidrivers/gtk2: . widgets widgets/form,
johannes <=