Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49857 > unrolled thread

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

Started byAseem Bansal <asmbansal2@gmail.com>
First post2013-07-04 06:23 -0700
Last post2013-09-21 13:19 +0000
Articles 20 — 13 participants

Back to article view | Back to comp.lang.python


Contents

  Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? Aseem Bansal <asmbansal2@gmail.com> - 2013-07-04 06:23 -0700
    Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? memilanuk <memilanuk@gmail.com> - 2013-07-04 08:24 -0700
    Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? Dave Cook <davecook@nowhere.net> - 2013-07-05 06:52 +0000
      Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? Aseem Bansal <asmbansal2@gmail.com> - 2013-07-09 01:33 -0700
        Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? CM <cmpython@gmail.com> - 2013-07-09 22:15 -0700
          Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? Aseem Bansal <asmbansal2@gmail.com> - 2013-07-15 07:57 -0700
    Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? asimjalis@gmail.com - 2013-07-15 09:59 -0700
    Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? Aseem Bansal <asmbansal2@gmail.com> - 2013-07-20 00:59 -0700
      Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? Dave Cook <davecook@nowhere.net> - 2013-07-21 11:14 +0000
        Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-07-21 13:20 +0200
          Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? Dave Cook <davecook@nowhere.net> - 2013-07-22 00:13 +0000
          Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? Aseem Bansal <asmbansal2@gmail.com> - 2013-07-22 05:32 -0700
        Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? Michael Torrie <torriem@gmail.com> - 2013-07-21 21:56 -0600
      Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? fronagzen@gmail.com - 2013-07-21 18:02 -0700
    Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? Cucole Lee <lzgcucool@gmail.com> - 2013-07-22 01:54 -0700
      Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? Kevin Walzer <kw@codebykevin.com> - 2013-07-22 10:57 -0400
        Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? David Hutto <dwightdhutto@gmail.com> - 2013-07-23 01:49 -0400
    Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? shubhxx54@gmail.com - 2013-09-21 00:19 -0700
      Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? Aseem Bansal <asmbansal2@gmail.com> - 2013-09-21 01:06 -0700
      Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio? Dave Angel <davea@davea.name> - 2013-09-21 13:19 +0000

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

FromAseem Bansal <asmbansal2@gmail.com>
Date2013-07-04 06:23 -0700
SubjectBeginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio?
Message-ID<a06c6c7f-1674-436b-81a1-850957d1341d@googlegroups.com>
I want to start GUI development using Tkinter in Python 2.7.5.

I have been searching all over google but couldn't find any IDE that has drag-and-drop feature for Python GUI development. Tried to ask on stackoverflow 

(http://stackoverflow.com/questions/17439620/an-ide-with-drag-and-drop-feature-for-python-2-7-tkinter)

but couldn't get an answer there. So is there any IDE that can be used for GUI developemnt and has drag-and-drop feature for Python GUI dev?

I came across somewhere that eclipse's pydev plugin can be used but couldn't find anything on its website.

Any advice about this?

[toc] | [next] | [standalone]


#49874

Frommemilanuk <memilanuk@gmail.com>
Date2013-07-04 08:24 -0700
Message-ID<mailman.4238.1372951505.3114.python-list@python.org>
In reply to#49857
On 07/04/2013 06:23 AM, Aseem Bansal wrote:
> I want to start GUI development using Tkinter in Python 2.7.5.
>
> I have been searching all over google but couldn't find any IDE that
> has drag-and-drop feature for Python GUI development.
>

For Tkinter, no luck.  The general consensus always seems to be that 
Tkinter and/or apps written using it tend to be simple enough to not 
really need that much 'help'.  Being a new(er) user I kind of disagree, 
as I think having to 'hand code' everything for the gui library included 
with Python detracts somewhat from its appeal to new users in that 
particular area.

Qt Creator is available for PyQt, which may be a better pick for you 
depending on what you want to do.  It does have a drag-n-drop interface 
that is very slick, but it generates a .ui file that still needs to be 
translated into a python module and imported into your main 'program' 
file - but it takes a *lot* of the tedium out of creating a user 
interface more complicated than a simple dialog window.

HTH,

Monte

[toc] | [prev] | [next] | [standalone]


#49929

FromDave Cook <davecook@nowhere.net>
Date2013-07-05 06:52 +0000
Message-ID<51d66d40$0$1609$c3e8da3$12bcf670@news.astraweb.com>
In reply to#49857
On 2013-07-04, Aseem Bansal <asmbansal2@gmail.com> wrote:

> I have been searching all over google but couldn't find any IDE that
> has drag-and-drop feature for Python GUI development.

If you want something like Visual Studio, you could try IronPython:

http://www.ironpython.net/tools/

For any moderatley complex cross-platform application, I would suggest
moving on to wxPython, PyQt, or PySide (the latter two both based on
Qt).  Then try wxFormBuilder, wxGlade, or Qt Designer.

Generally, I'd prefer using PyQt/PySide, because Qt has the more
uniform API.  I use wxPython for commercial work because it had the
more liberal license at the time I started using it (PySide was not
available at that time).  

As far as features and maturity go, I think both wx and Qt are fairly
equal. Qt has become more popular for scientific work.

PyGtk and Glade are another option, particularly on Linux, though I
think wx or Qt still have better compatibility with Win32 or OS X.  

For OS X only, PyObjC and XCode are an option.

While they are a tool that can save time, it's pretty easy to bump
into the limitations of form designers.  It's best to lower ones
expectations about how much coding can be offloaded onto a form
designer.

http://sourceforge.net/projects/wxformbuilder/
http://qt-project.org/doc/qt-4.8/designer-manual.html
http://wxglade.sourceforge.net/

> I came across somewhere that eclipse's pydev plugin can be used but
> couldn't find anything on its website.

The only form builders for Eclipse that I'm aware of are for Swing or
SWT.  You would need to use Jython (if you want to stick with a Python
implementation) to interface with these.

Dave Cook

[toc] | [prev] | [next] | [standalone]


#50225

FromAseem Bansal <asmbansal2@gmail.com>
Date2013-07-09 01:33 -0700
Message-ID<330e0cae-88d6-420d-a695-51b633afc631@googlegroups.com>
In reply to#49929
Thanks @Dave Cook.

I'll try wxPython.

[toc] | [prev] | [next] | [standalone]


#50297

FromCM <cmpython@gmail.com>
Date2013-07-09 22:15 -0700
Message-ID<b3501c50-d532-4f6a-97ed-dbb17fc9406b@googlegroups.com>
In reply to#50225
On Tuesday, July 9, 2013 4:33:17 AM UTC-4, Aseem Bansal wrote:
> Thanks @Dave Cook.
> 
> 
> 
> I'll try wxPython.

If so, the hoary but working Boa Constructor 0.7 is a drag and drop GUI builder for wxPython applications.  Well, more like click and then click again, then drag around.  It's also an IDE, so it also does a lot of other stuff.  ("No one" likes it any more because it hasn't been updated in years, but I like it, but I also like the 1974 AMC Matador.)

[toc] | [prev] | [next] | [standalone]


#50690

FromAseem Bansal <asmbansal2@gmail.com>
Date2013-07-15 07:57 -0700
Message-ID<d8d3cefc-86ac-45bc-b729-a7e101042db8@googlegroups.com>
In reply to#50297
@CM
Thanks for the suggestion. I'll take a look.

[toc] | [prev] | [next] | [standalone]


#50702

Fromasimjalis@gmail.com
Date2013-07-15 09:59 -0700
Message-ID<4f766d02-a3bd-4849-943e-16d297d6cb9a@googlegroups.com>
In reply to#49857
Take a look at kivy at http://kivy.org.

On Thursday, July 4, 2013 6:23:41 AM UTC-7, Aseem Bansal wrote:
> I want to start GUI development using Tkinter in Python 2.7.5.
> 
> 
> 
> I have been searching all over google but couldn't find any IDE that has drag-and-drop feature for Python GUI development. Tried to ask on stackoverflow 
> 
> 
> 
> (http://stackoverflow.com/questions/17439620/an-ide-with-drag-and-drop-feature-for-python-2-7-tkinter)
> 
> 
> 
> but couldn't get an answer there. So is there any IDE that can be used for GUI developemnt and has drag-and-drop feature for Python GUI dev?
> 
> 
> 
> I came across somewhere that eclipse's pydev plugin can be used but couldn't find anything on its website.
> 
> 
> 
> Any advice about this?

[toc] | [prev] | [next] | [standalone]


#50953

FromAseem Bansal <asmbansal2@gmail.com>
Date2013-07-20 00:59 -0700
Message-ID<f5b8c3b2-06aa-49ca-80fc-dca620329f26@googlegroups.com>
In reply to#49857
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.

[toc] | [prev] | [next] | [standalone]


#51005

FromDave Cook <davecook@nowhere.net>
Date2013-07-21 11:14 +0000
Message-ID<51ebc296$0$14280$c3e8da3$f017e9df@news.astraweb.com>
In reply to#50953
On 2013-07-20, Aseem Bansal <asmbansal2@gmail.com> wrote:

> Do I need to use QtCreator with PySide if I want drag-and-drop
> feature for GUI development? 

No, you just need the layout part of QtCreator, called QtDesigner, and
any decent Python editor or IDE (e.g. Idle):

http://wiki.python.org/moin/IntegratedDevelopmentEnvironments

There's another Qt IDE that uses QtDesigner called Monkey Studio
(seems to be PyQt only).

Designers can be really nice for learning the toolkit widgets and
layout, but I'd like to get away from them in my own projects,
actually, and move to something like enaml:

http://docs.enthought.com/enaml/

> Do I need to install Qt? If yes, which version - 4.8 or 5.1? 

PySide does not support 5.x yet, according to their website.  I
installed the PySide windows download, and it seems to work without
needing any Qt packages.

> Can I use cxfreeze to make exe files from the GUI developed? 

Probably.  We use py2exe for our wxPython/numpy application. 
Depending on the complexity and number of external modules used by
your application, bundling tools like this can require some google-fu
and trial and error to get working.  

http://qt-project.org/wiki/Packaging_PySide_applications_on_Windows

Dave Cook

[toc] | [prev] | [next] | [standalone]


#51006

FromChris “Kwpolska” Warrick <kwpolska@gmail.com>
Date2013-07-21 13:20 +0200
Message-ID<mailman.4948.1374405643.3114.python-list@python.org>
In reply to#51005
On Sun, Jul 21, 2013 at 1:14 PM, Dave Cook <davecook@nowhere.net> wrote:
> On 2013-07-20, Aseem Bansal <asmbansal2@gmail.com> wrote:
>
>> Do I need to use QtCreator with PySide if I want drag-and-drop
>> feature for GUI development?
>
> No, you just need the layout part of QtCreator, called QtDesigner, and
> any decent Python editor or IDE (e.g. Idle):

…and one more thing: pyside-uic, for transforming the .ui files into
(ugly) .py files.  It seems to be in /PythonXY/Scripts according to
Stack Overflow if you have PySide installed.
--
Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16
stop html mail                | always bottom-post
http://asciiribbon.org        | http://caliburn.nl/topposting.html

[toc] | [prev] | [next] | [standalone]


#51023

FromDave Cook <davecook@nowhere.net>
Date2013-07-22 00:13 +0000
Message-ID<51ec7930$0$43833$c3e8da3$9deca2c3@news.astraweb.com>
In reply to#51006
On 2013-07-21, Chris “Kwpolska” Warrick <kwpolska@gmail.com> wrote:

> …and one more thing: pyside-uic, for transforming the .ui files into
> (ugly) .py files.  It seems to be in /PythonXY/Scripts according to
> Stack Overflow if you have PySide installed.

Also, it looks like it's possible to directly load the .ui files:

http://srinikom.github.io/pyside-docs/PySide/QtUiTools/QUiLoader.html

Dave Cook

[toc] | [prev] | [next] | [standalone]


#51035

FromAseem Bansal <asmbansal2@gmail.com>
Date2013-07-22 05:32 -0700
Message-ID<4aeb747b-64b7-4d7d-8d2b-5a0daff368f3@googlegroups.com>
In reply to#51006
@Chris “Kwpolska” Warrick

Yeah, as I mentioned I was able to use it to create .py files and the GUI ran. But when I made the .exe from the .py using cxfreeze it created exe but the GUI did not run.

[toc] | [prev] | [next] | [standalone]


#51029

FromMichael Torrie <torriem@gmail.com>
Date2013-07-21 21:56 -0600
Message-ID<mailman.4971.1374465391.3114.python-list@python.org>
In reply to#51005
On 07/21/2013 05:20 AM, Chris “Kwpolska” Warrick wrote:
> On Sun, Jul 21, 2013 at 1:14 PM, Dave Cook <davecook@nowhere.net> wrote:
>> On 2013-07-20, Aseem Bansal <asmbansal2@gmail.com> wrote:
>>
>>> Do I need to use QtCreator with PySide if I want drag-and-drop
>>> feature for GUI development?
>>
>> No, you just need the layout part of QtCreator, called QtDesigner, and
>> any decent Python editor or IDE (e.g. Idle):
> 
> …and one more thing: pyside-uic, for transforming the .ui files into
> (ugly) .py files.  It seems to be in /PythonXY/Scripts according to
> Stack Overflow if you have PySide installed.

I don't think you want to be converting ui files into python classes.
Just use the PySide Qt api for loading them at runtime.

[toc] | [prev] | [next] | [standalone]


#51027

Fromfronagzen@gmail.com
Date2013-07-21 18:02 -0700
Message-ID<eda5ed17-edab-468c-863f-657f83a98f3b@googlegroups.com>
In reply to#50953
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.

[toc] | [prev] | [next] | [standalone]


#51030

FromCucole Lee <lzgcucool@gmail.com>
Date2013-07-22 01:54 -0700
Message-ID<2d98ebd2-7092-4479-95f1-f96bb2c7d75f@googlegroups.com>
In reply to#49857
Why Thinter? You can try wxpython.

[toc] | [prev] | [next] | [standalone]


#51047

FromKevin Walzer <kw@codebykevin.com>
Date2013-07-22 10:57 -0400
Message-ID<ksjgti$lp$1@dont-email.me>
In reply to#51030
On 7/22/13 4:54 AM, Cucole Lee wrote:
> Why Thinter? You can try wxpython.
>

Well, it's partly a matter of taste, but I for one find wxPython's 
API...inelegant.

-- 
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com

[toc] | [prev] | [next] | [standalone]


#51070

FromDavid Hutto <dwightdhutto@gmail.com>
Date2013-07-23 01:49 -0400
Message-ID<mailman.4994.1374558554.3114.python-list@python.org>
In reply to#51047

[Multipart message — attachments visible in raw view] — view raw

There is the matter of how much time you want to put into this. There is
the standard gtk library for python, and in the future, as soon as I'm well
enough to focus, having recent problems, I'll be using the blender game
engine to enhance my software to a 3d graphical form...to make my apps pop.

So which tutorials are you willing to take time with, and which are
benchmarked the best for your apps? For a 3d trig/quadrant cartesian 3d
implementation for practice  refresher, I used tkinter, and when using it
was slow as hell. SO the question is, have you looked at the individual
graphical tutorials for each, and decided on a look, a feel, and a time
enhanced optimization yet?

In other words, work a little bit with each to see which best fits your
needs.

[toc] | [prev] | [next] | [standalone]


#54536

Fromshubhxx54@gmail.com
Date2013-09-21 00:19 -0700
Message-ID<d4580814-ae34-45d5-8aaf-18772ceb2836@googlegroups.com>
In reply to#49857
i am very confuse about gui development in python ..
i installed qt creator .. but it has no option for  python..
how can i bulit any app using drag n drop facilities ...
i am trying wxpython ..
plz help me .
how i use wxpython .. 
plzz help me.. 
 

[toc] | [prev] | [next] | [standalone]


#54537

FromAseem Bansal <asmbansal2@gmail.com>
Date2013-09-21 01:06 -0700
Message-ID<489b4888-0113-4dd2-8a5e-1218286e428e@googlegroups.com>
In reply to#54536
You need to install PySide for GUI development. You don't need Qt Creator. When you have PySide installed there is a Qt Designer in your python installation directory. You use that for drag and drop GUI development. Search google for PySide and you'll find tutorials for that.

[toc] | [prev] | [next] | [standalone]


#54554

FromDave Angel <davea@davea.name>
Date2013-09-21 13:19 +0000
Message-ID<mailman.226.1379769594.18130.python-list@python.org>
In reply to#54536
On 21/9/2013 03:19, shubhxx54@gmail.com wrote:

> i am very confuse about gui development in python ..
> i installed qt creator .. but it has no option for  python..
> how can i bulit any app using drag n drop facilities ...
> i am trying wxpython ..
> plz help me .
> how i use wxpython .. 
> plzz help me.. 
>  

You mention three different GUI toolkits:

1) subject line says Tkinter
2) you say wxpython
3) your qt creator is presumably connected with qt

You need to get some consistent set of tools.

-- 
DaveA

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web