dabo Commit
Revision 6853
Date: 2011-09-26 07:16:34 -0700 (Mon, 26 Sep 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6853
Changed:
U trunk/dabo/dException.py
U trunk/dabo/db/dCursorMixin.py
U trunk/dabo/lib/SimpleCrypt.py
U trunk/dabo/ui/uiwx/dDatePicker.py
U trunk/dabo/ui/uiwx/dDateTextBox.py
U trunk/dabo/ui/uiwx/dDockForm.py
U trunk/dabo/ui/uiwx/dFormMixin.py
U trunk/dabo/ui/uiwx/dHyperLink.py
U trunk/dabo/ui/uiwx/dMenuItem.py
U trunk/dabo/ui/uiwx/dSlidePanelControl.py
U trunk/dabo/ui/uiwx/uiApp.py
Log:
Reverting prior commit which was made in error.
Diff:
Modified: trunk/dabo/dException.py
===================================================================
--- trunk/dabo/dException.py 2011-09-26 14:10:48 UTC (rev 6852)
+++ trunk/dabo/dException.py 2011-09-26 14:16:34 UTC (rev 6853)
@@ -28,19 +28,12 @@
class BusinessRuleViolation(dException):
pass
-
class BusinessRulePassed(dException):
pass
-
class RowNotFoundException(dException):
pass
-
-class DataSourceNotFoundException(dException):
- pass
-
-
class FeatureNotImplementedException(dException):
pass
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py 2011-09-26 14:10:48 UTC (rev 6852)
+++ trunk/dabo/db/dCursorMixin.py 2011-09-26 14:16:34 UTC (rev 6853)
@@ -1194,8 +1194,8 @@
for otherVal in listOfValues:
otherPK = self.lookupPKWithAdd(otherField, otherVal,
otherTable)
aux = self.AuxCursor
- sql = self._qMarkToParamPlaceholder("delete from %s
where %s = ? and %s = ?"
- % (self._assocTable,
self._assocPKColThis, self._assocPKColOther))
+ sql = "delete from %s where %s = ? and %s = ?" %
(self._assocTable,
+ self._assocPKColThis,
self._assocPKColOther)
try:
dabo.dbActivityLog.info("mmDisssociateValues()
SQL: %s, PARAMS: %s" % (
sql.decode(self.Encoding).replace("\n", " "), str((self._assocTable,
@@ -1218,8 +1218,7 @@
M-M table.
"""
aux = self.AuxCursor
- sql = self._qMarkToParamPlaceholder("delete from %s where %s =
?"
- % (self._assocTable, self._assocPKColThis))
+ sql = "delete from %s where %s = ?" % (self._assocTable,
self._assocPKColThis)
try:
dabo.dbActivityLog.info("mmDisssociateAll() SQL: %s" % (
sql.decode(self.Encoding).replace("\n",
" ")))
@@ -1252,8 +1251,8 @@
thisPK = self.lookupPKWithAdd(thisField, thisVal, thisTable)
otherPK = self.lookupPKWithAdd(otherField, otherVal, otherTable)
aux = self.AuxCursor
- sql = self._qMarkToParamPlaceholder("select * from %s where %s
= ? and %s = ?"
- % (self._assocTable, self._assocPKColThis,
self._assocPKColOther))
+ sql = "select * from %s where %s = ? and %s = ?" %
(self._assocTable,
+ self._assocPKColThis, self._assocPKColOther)
try:
dabo.dbActivityLog.info("mmAddToBoth() SQL: %s, PARAMS:
%s" % (
sql.decode(self.Encoding).replace("\n",
" "), str((thisPK, otherPK))))
@@ -1265,8 +1264,8 @@
dabo.dbActivityLog.info("mmAddToBoth() (failed
to log SQL and PARAMS)")
aux.execute(sql, (thisPK, otherPK))
if not aux.RowCount:
- sql = self._qMarkToParamPlaceholder("insert into %s
(%s, %s) values (?, ?)"
- % (self._assocTable,
self._assocPKColThis, self._assocPKColOther))
+ sql = "insert into %s (%s, %s) values (?, ?)" %
(self._assocTable,
+ self._assocPKColThis,
self._assocPKColOther)
aux.execute(sql, (thisPK, otherPK))
@@ -1286,8 +1285,7 @@
self._assocPKColOther, self._mmOtherTable,
self._mmOtherPKCol)
aux.setJoinClause(join)
aux.setFieldClause(fldNames)
- aux.setWhereClause(self._qMarkToParamPlaceholder("%s.%s = ?"
- % (self._assocTable, self._assocPKColThis)))
+ aux.setWhereClause("%s.%s = ?" % (self._assocTable,
self._assocPKColThis))
params = (self.getPK(),)
aux.requery(params)
return aux.getDataSet()
Modified: trunk/dabo/lib/SimpleCrypt.py
===================================================================
--- trunk/dabo/lib/SimpleCrypt.py 2011-09-26 14:10:48 UTC (rev 6852)
+++ trunk/dabo/lib/SimpleCrypt.py 2011-09-26 14:16:34 UTC (rev 6853)
@@ -38,33 +38,16 @@
self._cryptoProvider = None
# If the Crypto package is available, use it.
self._useDES3 = (self.__key is not None)
- self._useAES = (self.__key is not None)
if self._useDES3:
try:
from Crypto.Cipher import DES3
except ImportError:
self._useDES3 = False
-
- if self.__key:
- self.__key = self.__key[:16].rjust(16, "@")
-
if self._useDES3:
+ self.__key = self.__key[:16].rjust(16, "@")
self._cryptoProvider = DES3.new(self.__key,
DES3.MODE_CBC)
- if self._useAES:
- try:
- from Crypto.Cipher import AES
- except ImportError:
- self._useAES = False
- # TEMP!!!
- self._useAES = False
-
- if self._useAES:
- print "KEY", self.__key, divmod(len(self.__key), 16)
- self._cryptoProviderAES = AES.new(self.__key,
AES.MODE_CBC)
-
-
def showWarning(self):
warnings.warn("WARNING: SimpleCrypt is not secure. Please see
http://wiki.dabodev.com/SimpleCrypt for more information")
@@ -82,21 +65,7 @@
paddedText = "%s%s%s" % (initialPad, pad, aString)
enc = self._cryptoProvider.encrypt(paddedText)
retText = "%s%s" % (diffToEight, enc)
-
return base64.b64encode(retText)
-
- if self._useAES:
- # AES requires multiples of 16, not 8
- initialPad =
"".join(random.sample(string.printable, 16))
- strLen = len(aString)
- diffTo16 = 16 - (strLen % 16)
- pad = "@" * diffTo16
- print "PADLEN", len(pad)
- paddedText = "%s%s%s" % (initialPad, pad,
aString)
- encAES =
self._cryptoProviderAES.encrypt(paddedText)
- retTextAES = "%s%s" % (diffToEight, encAES)
-
- return base64.b64encode(retTextAES)
else:
self.showWarning()
tmpKey = self.generateKey(aString)
@@ -112,8 +81,6 @@
return ""
if self._useDES3:
decString = base64.b64decode(aString)
-# print "FIRST", int(decString[0])
-# print "SEC", int(decString[1])
# We need to chop off any padding, along with the first
8 garbage bytes
padlen = int(decString[0]) + 8
decString = decString[1:]
@@ -150,11 +117,3 @@
raise ValueError(_("Incorrectly-encrypted password"))
return "".join(chunks)
-
-if __name__ == "__main__":
- s = SimpleCrypt(key="What a long $trange trip it's been")
- orig = "biteme"
- enc = s.encrypt(orig)
- dec = s.decrypt(enc)
- print "Success=%s" % (dec == orig)
-
Modified: trunk/dabo/ui/uiwx/dDatePicker.py
===================================================================
--- trunk/dabo/ui/uiwx/dDatePicker.py 2011-09-26 14:10:48 UTC (rev 6852)
+++ trunk/dabo/ui/uiwx/dDatePicker.py 2011-09-26 14:16:34 UTC (rev 6853)
@@ -144,7 +144,6 @@
def _processKey(self, evt):
key = evt.EventData["keyCode"]
- print "KEY", key
if key == 43: # +
self.dayInterval(1)
elif key == 45: # -
Modified: trunk/dabo/ui/uiwx/dDateTextBox.py
===================================================================
--- trunk/dabo/ui/uiwx/dDateTextBox.py 2011-09-26 14:10:48 UTC (rev 6852)
+++ trunk/dabo/ui/uiwx/dDateTextBox.py 2011-09-26 14:16:34 UTC (rev 6853)
@@ -95,11 +95,10 @@
self.Value = None ## If it is still blank, default to
None so the control works correctly
if self.showCalButton:
# Create a button that will display the calendar
- self.calButton = dabo.ui.dBitmapButton(self.Parent,
Picture="downArrow",
- DownPicture="downTriangleBlack",
Size=(self.Height, self.Height),
- Left=self.Right,
OnHit=self._onCalButton)
+ self.calButton = dButton(self.Parent,
Size=(self.Height, self.Height),
+ Right=self.Right, Caption="V")
self.calButton.Visible = True
- self.calButton.bindEvent(dEvents.Hit, _onCalButton)
+ self.calButton.bindEvent(dEvents.Hit, __onBtnClick)
# Tooltip help
self._defaultToolTipText = _("""Available Keys:
@@ -134,7 +133,7 @@
self.showCalendar()
- def _onCalButton(self,evt):
+ def __onBtnClick(self,evt):
"""Display a calendar to allow users to select dates."""
self.showCalendar()
@@ -469,12 +468,5 @@
if __name__ == "__main__":
- class TestForm(dabo.ui.dForm):
- def afterInit(self):
- self.datetext = dDateTextBox(self,
Value=datetime.date.today())
- self.Sizer.append(self.datetext, halign="center",
border=25)
-
- app = dabo.dApp(MainFormClass=TestForm)
- app.start()
-# import test
-# test.Test().runTest(dDateTextBox)
+ import test
+ test.Test().runTest(dDateTextBox)
Modified: trunk/dabo/ui/uiwx/dDockForm.py
===================================================================
--- trunk/dabo/ui/uiwx/dDockForm.py 2011-09-26 14:10:48 UTC (rev 6852)
+++ trunk/dabo/ui/uiwx/dDockForm.py 2011-09-26 14:16:34 UTC (rev 6853)
@@ -87,7 +87,10 @@
self._toolbar = self._extractKey(kwargs, "Toolbar", False)
# Initialize attributes that underly properties
- self._dockable = self._bottomDockable = self._leftDockable =
self._rightDockable = self._topDockable = True
+ self._bottomDockable = True
+ self._leftDockable = True
+ self._rightDockable = True
+ self._topDockable = True
self._floatable = True
self._floatingPosition = (0, 0)
self._floatingSize = (100, 100)
@@ -145,9 +148,7 @@
"""Float the panel if it isn't already floating."""
if self.Floating or not self.Floatable:
return
- pos = self.FloatingPosition
self._PaneInfo.Float()
-# self.Position = pos
self._updateAUI()
@@ -215,33 +216,10 @@
return (nm, inf.replace("name=%s;" % nm, ""))
- def _forceUpdate(self, mthd, val):
- """Seems that some of the properties, when change, do not
manifest themselves
- until the panel is docked; once docked, they retain the changes
even when re-floated.
- This method forces a docking and restores floating state to
force visual update
- of such properties.
- """
- self.Form.lockDisplay()
- isFloating = self.Floating
- self.dock()
- pi = self._PaneInfo
- mthd = getattr(pi, mthd)
- mthd(val)
- self._updateAUI()
- if isFloating:
- def refloat():
- self.float()
- self.Form.unlockDisplay()
- dabo.ui.callAfterInterval(100, refloat)
- else:
- dabo.ui.callAfterInterval(100, self.Form.unlockDisplay)
-
-
def _updateAUI(self):
frm = self.Form
if frm is not None:
frm._refreshState()
- print self.Caption, dabo.dBug.logPoint()
else:
try:
self._Manager.runUpdate()
@@ -285,9 +263,6 @@
def _setBottomDockable(self, val):
if self._constructed():
- if self._bottomDockable == val:
- return
- self._bottomDockable = val
self._PaneInfo.BottomDockable(val)
self._updateAUI()
else:
@@ -322,22 +297,15 @@
def _getDockable(self):
- return self._dockable
+ return self._bottomDockable or self._leftDockable or
self._rightDockable or self._topDockable
def _setDockable(self, val):
if self._constructed():
- if self._dockable == val:
- return
- td, bd, ld, rd = self._topDockable,
self._bottomDockable, self._leftDockable, self._rightDockable
- self._dockable = val
+ self._dockable = self._bottomDockable =
self._leftDockable = self._rightDockable = self._topDockable = val
self._PaneInfo.Dockable(val)
if self.Docked:
self.Docked = val
- if not self._dockable and not self._floatable:
- # One has to be true
- self.Floatable = True
self._updateAUI()
- self.TopDockable, self.BottomDockable,
self.LeftDockable, self.RightDockable = td, bd, ld, rd
else:
self._properties["Dockable"] = val
@@ -378,15 +346,8 @@
def _setFloatable(self, val):
if self._constructed():
- if self._floatable == val:
- return
self._floatable = val
self._PaneInfo.Floatable(val)
- if self.Floating:
- self.Floating = val
- if not self._floatable and not self._dockable:
- # One has to be true
- self.Dockable = True
self._updateAUI()
else:
self._properties["Floatable"] = val
@@ -559,9 +520,6 @@
def _setLeftDockable(self, val):
if self._constructed():
- if self._leftDockable == val:
- return
- self._leftDockable = val
self._PaneInfo.LeftDockable(val)
self._updateAUI()
else:
@@ -626,9 +584,6 @@
def _setRightDockable(self, val):
if self._constructed():
- if self._rightDockable == val:
- return
- self._rightDockable = val
self._PaneInfo.RightDockable(val)
self._updateAUI()
else:
@@ -683,9 +638,8 @@
if val == self._showGripper:
return
self._showGripper = val
- self._forceUpdate("Gripper", val)
-# self._PaneInfo.Gripper(val)
-# self._updateAUI()
+ self._PaneInfo.Gripper(val)
+ self._updateAUI()
else:
self._properties["ShowGripper"] = val
@@ -749,9 +703,6 @@
def _setTopDockable(self, val):
if self._constructed():
- if self._topDockable == val:
- return
- self._topDockable = val
self._PaneInfo.TopDockable(val)
self._updateAUI()
else:
@@ -1056,121 +1007,62 @@
def afterInit(self):
self.fp = self.addPanel(Floating=True, BackColor="orange",
- Top=70, Left=200, Size=(144, 100),
DynamicCaption=self.capForOrange)
+ Caption="Initially Floating", Top=70, Left=200,
Size=(144, 100))
self.dp = self.addPanel(Floating=False, Caption="Initially
Docked", BackColor="slateblue",
ShowCaption=False, ShowPinButton=True,
ShowCloseButton=False,
ShowGripper=True, Size=(144, 100))
- cp = self.CenterPanel
- self.ddPanel = dabo.ui.dDropdownList(cp, Choices=["Orange",
"Blue"], Keys=[self.fp, self.dp],
- PositionValue=0)
- sz = cp.Sizer
- print "SZ", sz
- sz.append(self.ddPanel, halign="center", border=33)
- bsz = dabo.ui.dBorderSizer(cp, Caption="Properties")
- sz.append(bsz, border=10, halign="center")
- gsz = dabo.ui.dGridSizer(MaxRows=10)
- bsz.append1x(gsz, border=4)
- chk = dabo.ui.dCheckBox(cp, Caption="Dockable",
DataSource=self.getCurrentObject,
+ btn = dabo.ui.dButton(self.CenterPanel, Caption="Test Orange",
OnHit=self.onTestFP)
+ self.CenterPanel.Sizer.append(btn)
+ btn = dabo.ui.dButton(self.CenterPanel, Caption="Test Blue",
OnHit=self.onTestDP)
+ self.CenterPanel.Sizer.append(btn)
+ chk = dabo.ui.dCheckBox(self.CenterPanel, Caption="Orange
Dockable", DataSource=self.fp,
DataField="Dockable")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="TopDockable",
DataSource=self.getCurrentObject,
- DataField="TopDockable")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="BottomDockable",
DataSource=self.getCurrentObject,
- DataField="BottomDockable")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="RightDockable",
DataSource=self.getCurrentObject,
- DataField="RightDockable")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="LeftDockable",
DataSource=self.getCurrentObject,
- DataField="LeftDockable")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="Docked",
DataSource=self.getCurrentObject,
- DataField="Docked")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="Floatable",
DataSource=self.getCurrentObject,
- DataField="Floatable")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="Floating",
DataSource=self.getCurrentObject,
- DataField="Floating")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="Movable",
DataSource=self.getCurrentObject,
- DataField="Movable")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="Resizable",
DataSource=self.getCurrentObject,
- DataField="Resizable")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="ShowBorder",
DataSource=self.getCurrentObject,
- DataField="ShowBorder")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="ShowCaption",
DataSource=self.getCurrentObject,
- DataField="ShowCaption")
- gsz.append(chk)
-# chk = dabo.ui.dCheckBox(cp, Caption="ShowCloseButton",
DataSource=self.getCurrentObject,
-# DataField="ShowCloseButton")
-# gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="ShowGripper",
DataSource=self.getCurrentObject,
- DataField="ShowGripper")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="ShowMaximizeButton",
DataSource=self.getCurrentObject,
- DataField="ShowMaximizeButton")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="ShowMinimizeButton",
DataSource=self.getCurrentObject,
- DataField="ShowMinimizeButton")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="ShowPinButton",
DataSource=self.getCurrentObject,
- DataField="ShowPinButton")
- gsz.append(chk)
- chk = dabo.ui.dCheckBox(cp, Caption="Visible",
DataSource=self.getCurrentObject,
- DataField="Visible")
- gsz.append(chk)
-
- self.layout()
+ self.CenterPanel.Sizer.append(chk)
+ self.fp.DynamicCaption = self.capForOrange
- def getCurrentObject(self):
- return self.ddPanel.KeyValue
-
def capForOrange(self):
+ print "ORNG CAP", self.fp.Docked
state = "Floating"
if self.fp.Docked:
state = "Docked"
+ print "STATE", state
return "I'm %s!" % state
-# def onTestFP(self, evt):
-# self.printTest(self.fp)
-# def onTestDP(self, evt):
-# self.printTest(self.dp)
-# def printTest(self, obj):
-# nm = {self.fp: "OrangePanel", self.dp: "BluePanel"}[obj]
-# print nm + ".BottomDockable:", obj.BottomDockable
-# print nm + ".Caption:", obj.Caption
-# print nm + ".DestroyOnClose:", obj.DestroyOnClose
-# print nm + ".Dockable:", obj.Dockable
-# print nm + ".Docked:", obj.Docked
-# print nm + ".Floatable:", obj.Floatable
-# print nm + ".Floating:", obj.Floating
-# print nm + ".FloatingBottom:", obj.FloatingBottom
-# print nm + ".FloatingHeight:", obj.FloatingHeight
-# print nm + ".FloatingLeft:", obj.FloatingLeft
-# print nm + ".FloatingPosition:", obj.FloatingPosition
-# print nm + ".FloatingRight:", obj.FloatingRight
-# print nm + ".FloatingSize:", obj.FloatingSize
-# print nm + ".FloatingTop:", obj.FloatingTop
-# print nm + ".FloatingWidth:", obj.FloatingWidth
-# print nm + ".GripperPosition:", obj.GripperPosition
-# print nm + ".LeftDockable:", obj.LeftDockable
-# print nm + ".Movable:", obj.Movable
-# print nm + ".Resizable:", obj.Resizable
-# print nm + ".RightDockable:", obj.RightDockable
-# print nm + ".ShowBorder:", obj.ShowBorder
-# print nm + ".ShowCaption:", obj.ShowCaption
-# print nm + ".ShowCloseButton:", obj.ShowCloseButton
-# print nm + ".ShowGripper:", obj.ShowGripper
-# print nm + ".ShowMaximizeButton:", obj.ShowMaximizeButton
-# print nm + ".ShowMinimizeButton:", obj.ShowMinimizeButton
-# print nm + ".ShowPinButton:", obj.ShowPinButton
-# print nm + ".TopDockable:", obj.TopDockable
-# print nm + ".Visible:", obj.Visible
+ def onTestFP(self, evt):
+ self.printTest(self.fp)
+ def onTestDP(self, evt):
+ self.printTest(self.dp)
+ def printTest(self, obj):
+ nm = {self.fp: "OrangePanel", self.dp: "BluePanel"}[obj]
+ print nm + ".BottomDockable:", obj.BottomDockable
+ print nm + ".Caption:", obj.Caption
+ print nm + ".DestroyOnClose:", obj.DestroyOnClose
+ print nm + ".Dockable:", obj.Dockable
+ print nm + ".Docked:", obj.Docked
+ print nm + ".Floatable:", obj.Floatable
+ print nm + ".Floating:", obj.Floating
+ print nm + ".FloatingBottom:", obj.FloatingBottom
+ print nm + ".FloatingHeight:", obj.FloatingHeight
+ print nm + ".FloatingLeft:", obj.FloatingLeft
+ print nm + ".FloatingPosition:", obj.FloatingPosition
+ print nm + ".FloatingRight:", obj.FloatingRight
+ print nm + ".FloatingSize:", obj.FloatingSize
+ print nm + ".FloatingTop:", obj.FloatingTop
+ print nm + ".FloatingWidth:", obj.FloatingWidth
+ print nm + ".GripperPosition:", obj.GripperPosition
+ print nm + ".LeftDockable:", obj.LeftDockable
+ print nm + ".Movable:", obj.Movable
+ print nm + ".Resizable:", obj.Resizable
+ print nm + ".RightDockable:", obj.RightDockable
+ print nm + ".ShowBorder:", obj.ShowBorder
+ print nm + ".ShowCaption:", obj.ShowCaption
+ print nm + ".ShowCloseButton:", obj.ShowCloseButton
+ print nm + ".ShowGripper:", obj.ShowGripper
+ print nm + ".ShowMaximizeButton:", obj.ShowMaximizeButton
+ print nm + ".ShowMinimizeButton:", obj.ShowMinimizeButton
+ print nm + ".ShowPinButton:", obj.ShowPinButton
+ print nm + ".TopDockable:", obj.TopDockable
+ print nm + ".Visible:", obj.Visible
Modified: trunk/dabo/ui/uiwx/dFormMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dFormMixin.py 2011-09-26 14:10:48 UTC (rev 6852)
+++ trunk/dabo/ui/uiwx/dFormMixin.py 2011-09-26 14:16:34 UTC (rev 6853)
@@ -300,9 +300,6 @@
refresh. In these cases, pass an interval of 0 to this method,
which
means don't wait; execute now.
"""
-
- return
-
if interval is None:
interval = 100
if interval == 0:
Modified: trunk/dabo/ui/uiwx/dHyperLink.py
===================================================================
--- trunk/dabo/ui/uiwx/dHyperLink.py 2011-09-26 14:10:48 UTC (rev 6852)
+++ trunk/dabo/ui/uiwx/dHyperLink.py 2011-09-26 14:16:34 UTC (rev 6853)
@@ -34,9 +34,6 @@
def refresh(self):
-
- return
-
super(dHyperLink, self).refresh()
self.UpdateLink(True)
@@ -195,16 +192,7 @@
ForeColor = LinkColor
- DynamicHoverColor = makeDynamicProperty(HoverColor)
- DynamicHoverUnderline = makeDynamicProperty(HoverUnderline)
- DynamicLinkColor = makeDynamicProperty(LinkColor)
- DynamicLinkUnderline = makeDynamicProperty(LinkUnderline)
- DynamicURL = makeDynamicProperty(URL)
- DynamicVisitedColor = makeDynamicProperty(VisitedColor)
- DynamicVisitedUnderline = makeDynamicProperty(VisitedUnderline)
-
-
class _dHyperLink_test(dHyperLink):
def _onHit(self, evt):
print "hit"
Modified: trunk/dabo/ui/uiwx/dMenuItem.py
===================================================================
--- trunk/dabo/ui/uiwx/dMenuItem.py 2011-09-26 14:10:48 UTC (rev 6852)
+++ trunk/dabo/ui/uiwx/dMenuItem.py 2011-09-26 14:16:34 UTC (rev 6853)
@@ -5,7 +5,6 @@
import dIcons
import dabo
from dabo.dLocalize import _
-import dabo.dColors as dColors
import dabo.dEvents as dEvents
from dabo.ui import makeDynamicProperty
from dabo.lib.utils import ustr
@@ -108,19 +107,6 @@
self._properties["Enabled"] = val
- def _getForeColor(self):
- return self.GetTextColour().Get()
-
- def _setForeColor(self, val):
- if self._constructed():
- if isinstance(val, basestring):
- val = dColors.colorTupleFromName(val)
- if val != self.GetTextColour().Get():
- self.SetTextColour(val)
- else:
- self._properties["ForeColor"] = val
-
-
def _getForm(self):
return self.Parent.Form
@@ -196,10 +182,6 @@
Enabled = property(_getEnabled, _setEnabled, None,
_("Specifies whether the menu item can be interacted
with."))
- ForeColor = property(_getForeColor, _setForeColor, None,
- _("""Specifies the foreground color of the object.
- Only available on Windows and Gtk. (str, 3-tuple, or
wx.Colour)"""))
-
Form = property(_getForm, None, None,
_("Specifies the containing form."))
Modified: trunk/dabo/ui/uiwx/dSlidePanelControl.py
===================================================================
--- trunk/dabo/ui/uiwx/dSlidePanelControl.py 2011-09-26 14:10:48 UTC (rev
6852)
+++ trunk/dabo/ui/uiwx/dSlidePanelControl.py 2011-09-26 14:16:34 UTC (rev
6853)
@@ -493,9 +493,6 @@
def refresh(self):
-
- return
-
super(dSlidePanelControl, self).refresh()
if self.CollapseToBottom:
rect = self.RepositionCollapsedToBottom()
Modified: trunk/dabo/ui/uiwx/uiApp.py
===================================================================
--- trunk/dabo/ui/uiwx/uiApp.py 2011-09-26 14:10:48 UTC (rev 6852)
+++ trunk/dabo/ui/uiwx/uiApp.py 2011-09-26 14:16:34 UTC (rev 6853)
@@ -1028,13 +1028,6 @@
ret = None
win = self.findWindow
if win:
- try:
- return win.onFindOverride(action=action,
findString=findString,
- replaceString=replaceString,
downwardSearch=downwardSearch,
- wholeWord=wholeWord,
matchCase=matchCase)
- except AttributeError:
- # No override; process normally
- pass
if isinstance(win, wx.stc.StyledTextCtrl):
# STC
if action == "Replace":
_______________________________________________
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/[email protected]