main logo
Subject: [dabo-dev] daboide Commit 29
Author: noreply .AT. paulmcnett .D.OT com
Posted: 2004/12/31 16:59:06
 
View Entire Thread
New Search


daboide Commit
Revision 29
Date: 2004-12-31 13:59:05 -0800 (Fri, 31 Dec 2004)
Author: ed

Log:
Mostly housekeeping changes.


Changed:
U trunk/ClassDesigner.py
U trunk/OpenClassDialog.py

Diff:
Modified: trunk/ClassDesigner.py
===================================================================
--- trunk/ClassDesigner.py 2004-12-30 22:45:24 UTC (rev 28)
+++ trunk/ClassDesigner.py 2004-12-31 21:59:05 UTC (rev 29)
@@ -85,10 +85,6 @@

self._className = dlg.ClassName
self._classFile = dlg.ClassFile
-
- print self._className
- print self._classFile
-
self.parseInfo(dlg.ClassInfo)



Modified: trunk/OpenClassDialog.py
===================================================================
--- trunk/OpenClassDialog.py 2004-12-30 22:45:24 UTC (rev 28)
+++ trunk/OpenClassDialog.py 2004-12-31 21:59:05 UTC (rev 29)
@@ -26,7 +26,7 @@
if not os.path.exists(self._classFile):
self._classFile = None
if self._classFile is None:
- fd = dabo.ui.dFileDialog(self._parent)
+ fd = dabo.ui.dFileDialog(None)
fd.Message = "Select the class file"
fd.Wildcard = "Python Files (*.py)|*.py"
fd.show()
@@ -34,6 +34,7 @@
# User canceled
return
self._classFile = fd.Path
+ fd.Destroy()

dir, fname = os.path.split(self._classFile)
fbase = os.path.splitext(fname)[0]
@@ -46,12 +47,13 @@
if len(clsNames) == 1:
self._className = clsNames[0]
else:
- cld = ClassPicker(self._parent)
+ cld = ClassPicker(None)
cld.setChoices(clsNames)
res = cld.show()

if res == k.DLG_OK:
self._className = cld.selectedClass
+ cld.Destroy()

def _getClass(self):
return self._className
@@ -78,8 +80,7 @@
self.classDD = dabo.ui.dDropdownList(self)
self.classDD.ValueMode = "string"
self.classDD.bindEvent(dEvents.Hit, self.onSelection)
- self.Sizer.append(self.classDD, 1, "expand", alignment="center", border=25,
- borderFlags=("bottom", "left", "right") )
+ self.Sizer.append(self.classDD, 1, "expand", alignment="center", border=25, borderFlags="all" )

def setChoices(self, chc):
self.classDD.Choices = chc




 
©2004 noreply /at/ paulmcnett D.OT com
<-- Prior Message New Search Next Message -->