Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 21st, 2005, 1:33 PM   #21
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
That is true, but XML in Python isn't that hot - plainly because it's faster and a lot more flexible to interpret Python bytecode and execute it than it is to parse XML in Python and respond accordingly. I normally use a function like I stated above for generating the .py file when I'm developing but remove it and import the generated file solely when I want to distribute the script - importing a module strikes me as faster than reading an XML file to construct a GUI on the fly. Personal preference I suppose :-)
Cerulean is offline   Reply With Quote
Old Nov 21st, 2005, 1:45 PM   #22
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by Cerulean
I normally use a function like I stated above for generating the .py file when I'm developing but remove it and import the generated file solely when I want to distribute the script - importing a module strikes me as faster than reading an XML file to construct a GUI on the fly. Personal preference I suppose :-)
I didn't say it was faster (though it's likely not much slower); just slightly neater

I didn't say it was a big thing either, just something relatively minor. QtDesigner takes an extra step over Glade, but QtDesigner more than makes up for it in other ways.
Arevos is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:20 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC