daboide Commit
Revision 587
Date: 2006-06-01 17:02:59 -0700 (Thu, 01 Jun 2006)
Author: ed

Changed:
U   trunk/ClassDesigner.py

Log:
In the import declaration dialog, swapped the edit box for a dEditor control, 
allowing for IntelliSense. Tracker #0166.


Diff:
Modified: trunk/ClassDesigner.py
===================================================================
--- trunk/ClassDesigner.py      2006-06-01 21:46:04 UTC (rev 586)
+++ trunk/ClassDesigner.py      2006-06-02 00:02:59 UTC (rev 587)
@@ -687,21 +687,22 @@
                frm = self.currentForm
                txt = self._classImportDict.get(frm)
                if not txt:
-                       self._classImportDict[frm] = ""
+                       txt = self._classImportDict[frm] = ""
                # Create the dialog
                class ImportEditDialog(dui.dOkCancelDialog):
                        def addControls(self):
                                self.AutoSize = False
                                self.Caption = _("Import Declarations")
                                self.Size = (400, 300)
-                               self.edtImport = dui.dEditBox(self)
+                               self.edtImport = dui.dEditor(self, 
ShowLineNumbers=False,
+                                               ShowCodeFolding=False)
                                self.Sizer.append1x(self.edtImport, border=12)
                
                dlg = ImportEditDialog(None)
-               dlg.edtImport.Value = txt
+               dlg.edtImport.Text = txt
                dlg.show()
                if dlg.Accepted:
-                       self._classImportDict[frm] = dlg.edtImport.Value
+                       self._classImportDict[frm] = dlg.edtImport.Text
                dlg.release()
        
        




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to