[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r6411 - trunk/gnue-navigator/src
From: |
jamest |
Subject: |
r6411 - trunk/gnue-navigator/src |
Date: |
Mon, 27 Sep 2004 15:36:03 -0500 (CDT) |
Author: jamest
Date: 2004-09-27 15:36:02 -0500 (Mon, 27 Sep 2004)
New Revision: 6411
Modified:
trunk/gnue-navigator/src/GNConfig.py
trunk/gnue-navigator/src/UIwx.py
Log:
added embedForms=[0|1] option to gnue.conf [navigator] section
Modified: trunk/gnue-navigator/src/GNConfig.py
===================================================================
--- trunk/gnue-navigator/src/GNConfig.py 2004-09-27 20:23:09 UTC (rev
6410)
+++ trunk/gnue-navigator/src/GNConfig.py 2004-09-27 20:36:02 UTC (rev
6411)
@@ -69,6 +69,13 @@
'Description': "Do not display the splashscreen.",
'Typecast' : GTypecast.boolean,
'Default' : 1 },
+
+ { 'Name' : 'embedForms',
+ 'Type' : 'Setting',
+ 'Comment' : "Do not open separate window to display a GNUe Form.",
+ 'Description': "Do not open separate window to display a GNUe Form.",
+ 'Typecast' : GTypecast.boolean,
+ 'Default' : 1 },
{ 'Name' : 'hourglassDelay',
'Type' : 'Setting',
Modified: trunk/gnue-navigator/src/UIwx.py
===================================================================
--- trunk/gnue-navigator/src/UIwx.py 2004-09-27 20:23:09 UTC (rev 6410)
+++ trunk/gnue-navigator/src/UIwx.py 2004-09-27 20:36:02 UTC (rev 6411)
@@ -247,12 +247,25 @@
#
# Create the instance
#
- #instance = GFInstance(id(self),
- # connections=self.connections,
- # ui=ui, disableSplash=1)
- instance = GFInstance(self,connections=self.connections,
- ui=ui,disableSplash=1, parameters=parameters,
- parentContainer=self.panel2)
+
+ #print "disable splash: ", gConfigNav('disableSplash'),
type(gConfigNav('disableSplash'))
+ #print "embed forms: ", gConfigNav('embedForms'),
type(gConfigNav('embedForms'))
+ #
+ # TODO: The next if looks funny because the code above results in
+ #
+ # disable splash: 1 <type 'int'>
+ # embed forms: 0 <type 'str'>
+ #
+ # And I don't have time to dig ATM
+ #
+ if gConfigNav('embedForms') == "%s" % True:
+ instance = GFInstance(self,connections=self.connections,
+ ui=ui,disableSplash=1, parameters=parameters,
+ parentContainer=self.panel2)
+ else:
+ instance = GFInstance(id(self),
+ connections=self.connections,
+ ui=ui, disableSplash=1)
self._formInstances[id(self)] = instance
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r6411 - trunk/gnue-navigator/src,
jamest <=