daboide Commit
Revision 880
Date: 2007-09-17 12:06:14 -0700 (Mon, 17 Sep 2007)
Author: Paul
Trac: http://svn.dabodev.com/trac/daboide/changeset/880
Changed:
U trunk/wizards/AppWizard/AppWizard.py
U trunk/wizards/AppWizard/spec-PagSelect.py.txt
U trunk/wizards/AppWizard/spec-PagSelectBase.py.txt
Log:
Removed my removal of SortLabel from AppWizard apps.
Diff:
Modified: trunk/wizards/AppWizard/AppWizard.py
===================================================================
--- trunk/wizards/AppWizard/AppWizard.py 2007-09-13 05:12:01 UTC (rev
879)
+++ trunk/wizards/AppWizard/AppWizard.py 2007-09-17 19:06:14 UTC (rev
880)
@@ -906,7 +906,7 @@
##
## Field %(table)s.%(fieldName)s
##
- lbl = dabo.ui.dLabel(panel)
+ lbl = SortLabel(panel)
lbl.Caption = "%(fieldName)s:"
lbl.relatedDataField = "%(fieldName)s"
Modified: trunk/wizards/AppWizard/spec-PagSelect.py.txt
===================================================================
--- trunk/wizards/AppWizard/spec-PagSelect.py.txt 2007-09-13 05:12:01 UTC
(rev 879)
+++ trunk/wizards/AppWizard/spec-PagSelect.py.txt 2007-09-17 19:06:14 UTC
(rev 880)
@@ -4,10 +4,10 @@
if __name__ == "__main__":
dabo.ui.loadUI("wx")
import dabo.dEvents as dEvents
-from dabo.dLocalize import _
+from dabo.dLocalize import _, n_
from PagSelectBase import PagSelectBase, IGNORE_STRING, SelectTextBox, \
SelectCheckBox, SelectLabel, SelectDateTextBox, SelectSpinner, \
- SelectionOpDropdown
+ SelectionOpDropdown, SortLabel
class PagSelect%(tableName)s(PagSelectBase):
Modified: trunk/wizards/AppWizard/spec-PagSelectBase.py.txt
===================================================================
--- trunk/wizards/AppWizard/spec-PagSelectBase.py.txt 2007-09-13 05:12:01 UTC
(rev 879)
+++ trunk/wizards/AppWizard/spec-PagSelectBase.py.txt 2007-09-17 19:06:14 UTC
(rev 880)
@@ -60,6 +60,13 @@
Target = property(_getTarget, _setTarget, None, "Holds a reference to
the edit control.")
+class SortLabel(dabo.ui.dLabel):
+ def initEvents(self):
+ self.super()
+ self.bindEvent(dEvents.MouseRightClick,
self.Parent.Parent.onSortLabelRClick)
+ # Add a property for the related field
+ self.relatedDataField = ""
+
+
class PagSelectBase(datanav.SelectPage):
pass
-
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]