On 08/04/2013 10:45 AM, vvyogi . wrote:
Hi List,

I have just started using "DABO". And I find it 'awesome'.
I am using the Class-Designer for developing my application. My problem is:

The *Class Designed* Generates a xml file with "cdxml" extension. This xml
has all my* UI design* and *UI elements* and *Code* as well. As I am adding
more each day, the size of this cdxml file is growing and *on each save/save
-as* I have to wait for 8-12seconds.

Now, I have stopped using the Class Designed and I am editing the XML file
directly and running it in python shell. This makes *save/save-as* faster
but the app loading *seems* slow.
My Questions are :

1. Is my approach i.e. using the cdXML to store "UI + code" right?
2. How can I separate the code from cdXML file and put it into a "py" file.
Will this make my app load fast.
3. Right Now I am using *lengthy* statements like
"self.Form.dPanel.dPageFrameNoTabs.cyclePages(1)" how can i avoid that.
4. I am using RegID to access all my textBoxex and EditBoxes( there are a
total of 50+ of them colletively) Does it make my app Slow?

Kindly do let me know if any more info is needed. Thanks


Before I start this I want you to be aware that I do not use the ClassDesigner. Not because it does not work but because I started that way and don't mind hand coding the UI.

You failed to provide the versions of your environment. You should always helps us help you by providing the python, wxpython and Dabo versions.

The save time seems out of the norm. I have tested the ClassDesigner many times and don't recall anything longer than a few seconds. So I wonder what happening here? It must be obvious that the long save times would also translate to long load times.

That said, the xml file is translated to a "py" and the 'py' file runs. I recall when I use to test the ClassDesigner that I could stop it after it translated the xml data to a 'py' file. It was a temp file. Back then I used the file as examples for my hand coding. I believe the above should help you see the real UI code.

I have lots of UI controls on a form and yes it's a little slow but still opens within 5 seconds. But I doubt it has much to do with the loading of the screen controls. I'm fairly sure the real issue is the loading of data. In my code I delay the loading of control data until it's needed. In fact I open a blank form. Dabo still opens the database connection and confirms the fields and data types for each of the tables the form requires. So you should check the code and see if you requery often (should normally be done only once).

I believe all the controls will accept a 'RegID' (including the pageframes). Therefore you can use something like self.Form.RegID or self.RegID depending where you are making the call.

You can post your code at http://dabo.codepad.org/ and hopefully someone will help. I doubt it will be me because I don't use ClassDesigner. But I will try as several of the developers are on vacation.

Johnf







_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.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