dabodemo Commit
Revision 492
Date: 2007-01-23 15:06:45 -0800 (Tue, 23 Jan 2007)
Author: Nate
Changed:
U trunk/SerialTerminal/mainForm.py
Log:
Got the backend for the SerialSetupPanel completely working. It will declare
and maintain it's own serial port that is stored as the property SerialPort.
All of the event handlers for the widgets are here and everything works as far
as I can tell.
Diff:
Modified: trunk/SerialTerminal/mainForm.py
===================================================================
--- trunk/SerialTerminal/mainForm.py 2007-01-23 22:53:49 UTC (rev 491)
+++ trunk/SerialTerminal/mainForm.py 2007-01-23 23:06:45 UTC (rev 492)
@@ -41,10 +41,13 @@
gs = dabo.ui.dGridSizer(MaxCols=2)
gs.setColExpand(True, 1)
+ self.ddInputFormat = dabo.ui.dDropdownList(self,
RegID="ddInputFormat", Choices=formats)
+ self.ddOutputFormat = dabo.ui.dDropdownList(self,
RegID="ddOutputFormat", Choices=formats)
+
gs.append(dabo.ui.dLabel(self, Caption="Input Format"),
halign="right")
- gs.append(dabo.ui.dDropdownList(self, RegID="ddInputFormat",
Choices=formats), "expand")
+ gs.append(self.ddInputFormat, "expand")
gs.append(dabo.ui.dLabel(self, Caption="Output Format"),
halign="right")
- gs.append(dabo.ui.dDropdownList(self, RegID="ddOutputFormat",
Choices=formats), "expand")
+ gs.append(self.ddOutputFormat, "expand")
bs.append1x(gs)
vs.append(bs, "expand", 0)
@@ -59,16 +62,22 @@
#add the serial input command
bs = dabo.ui.dBorderSizer(self, "vertical", Caption="Serial
Input")
- bs.append1x(dabo.ui.dTextBox(self, RegID="txtSerialInput"))
+ self.txtSerialInput = dabo.ui.dTextBox(self,
RegID="txtSerialInput")
+ bs.append1x(self.txtSerialInput)
vs.append(bs, "Expand", 0)
#add the serial transfer viewscreen
bs = dabo.ui.dBorderSizer(self, "vertical", Caption="Serial
Transfer Viewscreen")
- bs.append1x(dabo.ui.dEditBox(self, RegID="edtSerialTransfer"))
+ self.edtSerialTransfer = dabo.ui.dEditBox(self,
RegID="edtSerialTransfer")
+ bs.append1x(self.edtSerialTransfer)
vs.append1x(bs)
self.Sizer.append1x(vs)
+
############################################################################
+ # Event Handlers
###########################################################
+ def onHit_txtSerialInput(self, evt):
+ if self.Parent.txtSerialInput
class mainForm(dabo.ui.dForm):
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev