Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio?

fronagzen at gmail.com fronagzen at gmail.com
Sun Jul 21 21:02:45 EDT 2013


On Saturday, July 20, 2013 3:59:00 PM UTC+8, Aseem Bansal wrote:
> After considering all the options suggested here I decided to use PySide/QtCreator as was suggested by Dave Cook. I created a simple GUI with QtCreator and found a way to convert .ui files to .py files. So far so good.
> 
> But now I am having some confusion about the correct tools to use for PySide and I am stuck due to that. I explored the PySide wiki and discussed the confusion on Qt-forums but that didn't help much. The url of that discussion is given below(without backslashes to avoid it being shortened). Just using this on google you can easily find the discussion.
> 
> qt-project.org  forums   viewthread  30114
> 
> Do I need to use QtCreator with PySide if I want drag-and-drop feature for GUI development? Do I need to install Qt? If yes, which version - 4.8 or 5.1? 
> 
> Can I use cxfreeze to make exe files from the GUI developed? I used it for pure Python files and it worked. The size of the file was big but it worked with me having to install Python on another computer. I tried to use cxfreeze on the GUI Python script that I was finally able to make. Some exe was made but no GUI started when I ran the exe. Is that a problem with cxfreeze or me having wrong tools installed?
> 
> Any help is appreciated.

It is possible to freeze PyQt programs, yes; I've succeeded before. However, cxFreeze will grab the entire PyQt library, which is past a hundred megabytes in size, so you're going to end up with an enormous file.

Do you have a setup.py appropriately configured for this? You should probably do, it's rather likely that the autodetect isn't correctly identifying dependencies. cxFreeze actually lists missing modules near the beginning of its run, try and take a look at that. Unfortunately, not every single missing module is actually missing or critical, and I can't really help you identify which one. For example, for my script, I have:

Missing Modules:
? BeautifulSoup imported from lxml.html.souparser
? UserDict imported from lxml.html
? __main__imported from bdb
? _gestalt imported from platform
? _posixsubprocess imported from subprocess
? etree imported from lxml.ptclasslookup
? html5lib imported from lxml.html.html5parser
? htmlentitydefs imported from lxml.html.soupparser
? sets oimported from lxml.ElementInclude
? Ssouppraser imported from lxml.html.ElementSoup
? urllib.urlencode imported from lxml.html
? urllib.urlopen imported from lxml.html
? urllib2 imported from lxml.ElementInclude
? urlparse imported from lxml.ElementInclude
? win32api imported from platform
? win32con imported from platform

But the only thing I actually need to explicitly include in my setup.py is os, lxml and gzip. Go figure.



More information about the Python-list mailing list