Yesterday when I was trying to reopen the ClientForm.py, I started by simply
executing the ClassDesigner.py, as I did when first creating the form. It
seems to start out like a wizard; "Select the class to Create". I'd read
something in a msg here about creating a blank form and then opening the one
you really wanted to work with; that didn't work. But now I see that using
as you've outlined works great.

Re the execution problem, when I double click the hours project main.py, a
dos window opens and closes right away, that's all.

Then I reopened ClientForm.py in the class designer, and tried file/run to
see if that gave me more to chew on. It does pop up a dialog stating

Attribute Error 'NoneType' object has no attribute 'ClientBizobj'

I have this code in object dForm 

def createBizobjs(self):
        conn = self.Application.getConnectionByName("ConsultHours")
        bizClient = self.Application.biz.ClientBizobj(conn)
        self.addBizobj(bizClient) 

Note, the tutorial screenshot shows DesForm, but the text says dform. I used
dform, seemed to be the only option. The cdxml files viewed in a text editor
does have designerClass="DesForm" in line 2.

I'll search here on the forums and will probably be able to solve this.  


 


Ed Leafe wrote:
> 
> On Feb 21, 2009, at 11:00 PM, novnov wrote:
> 
>> I made it half way through the step by step, which is pretty good BTW.
>>
>> At the point when I was supposed to run the completed Clients form  
>> something
>> failed. First the cmd prompt showed this, I'm not sure exactly when
>>
>> E:\dabo\ide>ClassDesigner.py
>> NO ON CONTEXT 'DesForm' object has no attribute 'createContextMenu'
> 
>       I can't seem to get that to happen here. Does it do this all the  
> time, or just that one time?
> 
>> 'createContextMenu' is not something that the step by step directly
>> manipulates. And when I try to run the ClientForm.cdxml, the cmd  
>> windows
>> just blinks open and then closes...maybe due to that error.
> 
>       How are you running the cdxml file?
> 
>> So I wanted to inspect the form class I'd created. It seems like  
>> there is no
>> way to reopen the form class in the ClassDesigner? I read a mixture of
>> message about that, myabe it is possible. But I wasn't able to  
>> derive it
>> from whatever I read. And does anyone have a clue what the
>> ''createContextMenu' error might be?
> 
> 
>       It's very easy to re-open a cdxml file. From the command line, just  
> type:
> 
> python ClassDesigner.py path/to/mySaved.cdxml
> 
>       Or, if you already have the Class Designer running, choose the File/ 
> Open menu to open a saved design.
> 
>       As far as the message about 'createContextMenu', that's a common  
> method in the Class Designer classes, and is called when you right  
> click on things. You would get that error if you had the Object Tree  
> visible and right-clicked on the main form itself. Looking over the  
> code, I can add code to handle that case, but it doesn't explain why  
> you got that message by simply trying to start the Class Designer.
> 
> 
> -- Ed Leafe
> 
> 
> 
> 
[excessive quoting removed by server]

_______________________________________________
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/[email protected]

Reply via email to