Sigh!

I had my ui laid out pretty much as I wanted it so I started to add code. I entered an onInitialize method for the form and then realized that this was fired 2x on initialization (and once more on when the program is shut down?) which is no6t what I wanted. So I tried an onCreate method and this did only get fired once. I tried to delete (in the Editor) the onInitialize method but there really is no means to do this other than by removing the code body. Once I started doing this I kept getting compilation errors when I ran the code - even after I had restored the onInitialize code to its former glory (a print statment).

So I closed down everything and restarted the Designer at which point it barfed at me and punished me by adding extra sizer slots to some of my horizontal sizers. It just knew that I could not get at them easily to remove them!

I guess I have to start over again - after I have set up a local svn repository so that I can keep a history of changes.

Here are the Dabo droppings:

--------------------------
Dabo Info Log: Wed Jan 18 14:59:44 2006: 1 database connection definition(s) loa
ded.
Dabo Info Log: Wed Jan 18 14:59:44 2006: User interface already set to 'wx', so
dApp didn't  touch it.
Dabo Info Log: Wed Jan 18 14:59:44 2006: wxPython Version: 2.6.1.0 wxMSW (ascii)

Traceback (most recent call last):
File "C:\Python24\lib\site-packages\wx-2.6-msw-ansi\wx\_core.py", line 13266,
in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
File "C:\PYTHON24\Lib\site-packages\Dabo-0.5-py2.4.egg\dabo\ui\uiwx\dSizerMixi
n.py", line 155, in remove
    self.Detach(item)
File "C:\Python24\lib\site-packages\wx-2.6-msw-ansi\wx\_core.py", line 11521,
in Detach
    return _core_.Sizer_Detach(*args, **kwargs)
TypeError: wxWindow, wxSizer or int (position) expected for item
Traceback (most recent call last):
File "C:\Python24\lib\site-packages\wx-2.6-msw-ansi\wx\_core.py", line 13266,
in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
File "C:\PYTHON24\Lib\site-packages\Dabo-0.5-py2.4.egg\dabo\ui\uiwx\dSizerMixi
n.py", line 155, in remove
    self.Detach(item)
File "C:\Python24\lib\site-packages\wx-2.6-msw-ansi\wx\_core.py", line 11521,
in Detach
    return _core_.Sizer_Detach(*args, **kwargs)
TypeError: wxWindow, wxSizer or int (position) expected for item

--------------------------


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<dForm Caption="MyStuff" Top="52" Height="592" Width="745" designerClass="DesForm" Left="527">
        <code>
                <onCreate><![CDATA[
def onCreate(self, evt):
        print "On create"
]]>
                </onCreate>
                <onActivate><![CDATA[
def onActivate(self, evt):
        print "foo"
]]>
                </onActivate>
        </code>

        <dSizer SlotCount="1" designerClass="LayoutSizer" 
Orientation="Vertical">
<dPanel sizerInfo="{'BorderSides': ['All'], 'Proportion': 1, 'Halign': 'Left', 'Valign': 'Top', 'Border': 0, 'Expand': True}" designerClass="controlMix">
                        <dSizer SlotCount="5" designerClass="LayoutSizer" 
Orientation="Vertical">
<dBorderSizer SlotCount="2" Caption="Message Folder" sizerInfo="{'BorderSides': ['All'], 'Proportion': 0, 'Halign': 'Left', 'Valign': 'Top', 'Border': 0, 'Expand': True}" designerClass="LayoutBorderSizer"> <dTextBox sizerInfo="{'BorderSides': ['All'], 'Proportion': 1, 'Halign': 'Left', 'Valign': 'Top', 'Border': 5, 'Expand': True}" designerClass="controlMix"></dTextBox> <dButton RegID="btnMessageFolder" Caption="Browse" sizerInfo="{'BorderSides': ['All'], 'Proportion': 0, 'Halign': 'Left', 'Valign': 'Top', 'Border': 5, 'Expand': True}" designerClass="controlMix">
                                                <code>
                                                        <testMethod><![CDATA[
def testMethod(self):
        print "testMthod called"
]]>
                                                        </testMethod>
                                                        <onHit><![CDATA[
def onHit(self, evt):
        print "Message Folder Button pressed"
]]>
                                                        </onHit>
                                                </code>
                                        </dButton>
                                </dBorderSizer>
<dBorderSizer SlotCount="2" Caption="Mbox File" sizerInfo="{'BorderSides': ['All'], 'Proportion': 0, 'Halign': 'Left', 'Valign': 'Top', 'Border': 0, 'Expand': True}" designerClass="LayoutBorderSizer"> <dTextBox sizerInfo="{'BorderSides': ['All'], 'Proportion': 1, 'Halign': 'Left', 'Valign': 'Top', 'Border': 5, 'Expand': True}" designerClass="controlMix" Name="dTextBox1"></dTextBox> <dButton Caption="Browse" sizerInfo="{'BorderSides': ['All'], 'Proportion': 0, 'Halign': 'Left', 'Valign': 'Top', 'Border': 5, 'Expand': True}" designerClass="controlMix" Name="dButton1"></dButton>
                                </dBorderSizer>
<dBorderSizer SlotCount="2" Caption="" sizerInfo="{'BorderSides': ['All'], 'Proportion': 0, 'Halign': 'Left', 'Valign': 'Top', 'Border': 0, 'Expand': True}" designerClass="LayoutBorderSizer"> <dPanel Spacing="10" sizerInfo="{'BorderSides': ['All'], 'Proportion': 1, 'Halign': 'Center', 'Valign': 'Middle', 'Border': 5, 'Expand': True}" designerClass="LayoutSpacerPanel"></dPanel> <dButton Caption="Start" sizerInfo="{'BorderSides': ['All'], 'Proportion': 0, 'Halign': 'Left', 'Valign': 'Top', 'Border': 5, 'Expand': True}" designerClass="controlMix" Name="dButton2"></dButton>
                                </dBorderSizer>
<dBorderSizer SlotCount="1" Caption="" sizerInfo="{'BorderSides': ['All'], 'Proportion': 1, 'Halign': 'Left', 'Valign': 'Top', 'Border': 0, 'Expand': True}" designerClass="LayoutBorderSizer"> <dTextBox sizerInfo="{'BorderSides': ['All'], 'Proportion': 1, 'Halign': 'Left', 'Valign': 'Top', 'Border': 5, 'Expand': True}" designerClass="controlMix" Name="dTextBox2"></dTextBox>
                                </dBorderSizer>
<dBorderSizer SlotCount="2" Caption="" sizerInfo="{'BorderSides': ['All'], 'Proportion': 0, 'Halign': 'Left', 'Valign': 'Top', 'Border': 0, 'Expand': True}" designerClass="LayoutBorderSizer"> <dPanel Spacing="10" sizerInfo="{'BorderSides': ['All'], 'Proportion': 1, 'Halign': 'Left', 'Valign': 'Top', 'Border': 5, 'Expand': True}" designerClass="LayoutSpacerPanel"></dPanel> <dButton Caption="Finish" sizerInfo="{'BorderSides': ['All'], 'Proportion': 0, 'Halign': 'Left', 'Valign': 'Top', 'Border': 5, 'Expand': True}" designerClass="controlMix" Name="dButton3"></dButton>
                                </dBorderSizer>
                        </dSizer>
                </dPanel>
        </dSizer>
</dForm>

--------------------------


Don.


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

Reply via email to