johnf wrote:
> try this:
>
> this is the filename-code.py file
> # -*- coding: utf-8 -*-
> ### Dabo Class Designer code. You many freely edit the code,
> ### but do not change the comments containing:
> ### 'Dabo Code ID: XXXX',
> ### as these are needed to link the code to the objects.
>
> ## *!* ## Dabo Code ID: dForm-top
> def afterInitAll(self):
> self.carl1.Value = "hello Carl"
> self.carl2.Value = "this is for"
> self.carl3.Value = "You!"
>
> the cdxml file
> <?xml version="1.0" encoding="utf-8" standalone="no"?>
> <dForm code-ID="dForm-top" Caption="Dabo Class Designer" Top="269"
> Height="827" Width="934" designerClass="DesForm" UseSizers="True" Left="526">
> <dSizer SlotCount="1" designerClass="LayoutSizer"
> Orientation="Vertical">
> <dPanel Width="934" sizerInfo="{'BorderSides': ['All'],
> 'Proportion':
> 1, 'HAlign': 'Center', 'VAlign': 'Middle', 'Border': 0, 'Expand': True}"
> designerClass="controlMix" Height="773">
> <dSizer SlotCount="3" designerClass="LayoutSizer"
> Orientation="Vertical">
> <dTextBox RegID="carl1" Width="934"
> sizerInfo="{'BorderSides':
> ['All'], 'Proportion': 0, 'HAlign': 'Left', 'VAlign': 'Top', 'Border':
> 0, 'Expand': True}" designerClass="controlMix"></dTextBox>
> <dTextBox RegID="carl2" Width="934"
> sizerInfo="{'BorderSides':
> ['All'], 'Proportion': 0, 'HAlign': 'Left', 'VAlign': 'Top', 'Border':
> 0, 'Expand': True}" designerClass="controlMix" Name="dTextBox1"></dTextBox>
> <dTextBox RegID="carl3" Width="934"
> sizerInfo="{'BorderSides':
> ['All'], 'Proportion': 0, 'HAlign': 'Left', 'VAlign': 'Top', 'Border':
> 0, 'Expand': True}" designerClass="controlMix" Name="dTextBox2"></dTextBox>
> </dSizer>
> </dPanel>
> </dSizer>
> </dForm>
>
>
> this should display three textboxes
Um, I am sure it does if I open it in the CD, but there isn't anything to run,
and it doesn't look like it comes close to my goal of: controls in a .cdxml
bound to something other than self.something.
My original post has "class myClass(object):" 2 properties: .MyProp1 and
.MyProp2 and a .swap() method. I want to see those 3 things bound to the 2
text
boxes and button.
The end result should be: hit the button, see the values displayed in the text
boxes switch places.
The code and cdxml should be 'really close' - I just need figure out how to
tell
the cdxml engine how to find myObj.MyProp1, 2 and .swap(). That is what I need
help with.
Carl K
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]