wxPython GUI designer

D

diffuser78

I am newbie learning wxPython. I tried using GUI designer called
wxGlade. When it generated code I couldnt get the same level of
flexibility as writing the code by oneself.

Any view on what you think about using GUI designer tools.

Every help is appreciated.
 
D

DH

I am newbie learning wxPython. I tried using GUI designer called
wxGlade. When it generated code I couldnt get the same level of
flexibility as writing the code by oneself.

Any view on what you think about using GUI designer tools.

Every help is appreciated.

In my opinion none of the wx* or gtk* related designer tools are
any good. QT Designer (which can be used with pyqt) is excellent,
however, you probably would only want to use that if you are
developing non-commercial software or else can afford a commercial
license from Trolltech. For wx and gtk projects, I usually just write
the gui by hand like you have already been doing.
 
D

diffuser78

Are there any good commercial project built with wx ? I am a newbie and
a have to write a small application in Python. I was wondering which
optin would be best for me in terms of least learning curve and getting
the final product ASAP.

Thanks
 
J

jean-michel bain-cornu

(e-mail address removed) a écrit :
I am newbie learning wxPython. I tried using GUI designer called
wxGlade. When it generated code I couldnt get the same level of
flexibility as writing the code by oneself.

Any view on what you think about using GUI designer tools.

Every help is appreciated.
Boa is excellent if you stay at a primary level. It's a visual design
tool, and it can help you to learn how to manage wx classes. It works on
windows and linux as well.
My understanding of wxglade is that you need skills about sizers to be
confident with it. So if you know how to use sizers, you don't really
need a tool.
Regards,
jm
 
R

Rony Steelandt

Boa is excellent if you stay at a primary level. It's a visual design tool,
and it can help you to learn how to manage wx classes. It works on windows
and linux as well.
My understanding of wxglade is that you need skills about sizers to be
confident with it. So if you know how to use sizers, you don't really need a
tool.
Regards,
jm

I use wxDesigner

--
---
Rony Steelandt
BuCodi
rony dot steelandt (at) bucodi dot com

Visit the python blog at http://360.yahoo.com/bucodi
 
D

DarkBlue

Take a look at pythoncard , we use it to produce
database frontends , but apparently it also can be used
for simple graphics apps and others.
However if you are used to things like the Delphi IDE to build
a gui app , then prepare to shed lots of tears before
overcoming the initial disbelieve, that there is nothing
better available for python.
 
?

=?iso-8859-1?q?Luis_M._Gonz=E1lez?=

I am newbie learning wxPython. I tried using GUI designer called
wxGlade. When it generated code I couldnt get the same level of
flexibility as writing the code by oneself.

Any view on what you think about using GUI designer tools.

Every help is appreciated.


Try PythonCard.
It's based on wxPython, and it's more higher level than Boa.
Very simple and very easy to learn and use.
 
A

aum

I am newbie learning wxPython. I tried using GUI designer called
wxGlade. When it generated code I couldnt get the same level of
flexibility as writing the code by oneself.

Any view on what you think about using GUI designer tools.

Every help is appreciated.

I use wxGlade all the time, and find it's great. My only complaint is that
there are some controls it doesn't know about, such as wx.HtmlWindow, and
I have to add these controls in wxGlade as 'custom' controls. But to me,
that's pretty minor.

To get the best out of wxGlade, you really need to subclass the classes
that wxGlade generates. Don't look to wxGlade to write your app for you.
It's there for gui structure (the 'view'), and it's up to you to flesh out
the 'controller' side.

So I'd recommend you persist with wxGlade - subclass all the classes that
wxGlade generates, and add your own methods to handle events, set up the
gui as you want, and (in some rare cases) do some extra initial bindings.

I typically set wxGlade to generate a file called 'myapp_ui.py', and I
write my own 'myapp.py', in which I 'import myapp_ui', then subclass the
wxGlade-generated classes in 'myapp_ui'.

Works a treat for me, and saves a lot of time compared to hand-coding the
GUI.
 
D

Don Taylor

aum said:
I use wxGlade all the time, and find it's great. My only complaint is that
there are some controls it doesn't know about, such as wx.HtmlWindow, and
I have to add these controls in wxGlade as 'custom' controls. But to me,
that's pretty minor.

To get the best out of wxGlade, you really need to subclass the classes
that wxGlade generates. Don't look to wxGlade to write your app for you.
It's there for gui structure (the 'view'), and it's up to you to flesh out
the 'controller' side.

So I'd recommend you persist with wxGlade - subclass all the classes that
wxGlade generates, and add your own methods to handle events, set up the
gui as you want, and (in some rare cases) do some extra initial bindings.

I typically set wxGlade to generate a file called 'myapp_ui.py', and I
write my own 'myapp.py', in which I 'import myapp_ui', then subclass the
wxGlade-generated classes in 'myapp_ui'.

Works a treat for me, and saves a lot of time compared to hand-coding the
GUI.

I second this approach to using wxGlade, it works really well although I
have not seen it documented anywhere.

I am not sure if 'aum' meant this, but I let wxGlade generate the event
methods for me in 'myapp_ui.py' and then override them in 'myapp.py'.
You have full control over the code in your own 'myapp.py' and you
rarely have to mess with 'myapp_ui.py' so you can let wxGlade keep
control of that file.

wxGlade does not support GridBag sizers, which is a shame, but otherwise
its support for sizers is good. I find it easy to use sizers in
wxGlade. Pythoncard does not yet support sizers and I have never been
able to get Boa's sizers to work consistently.

wxGlade is a bit flaky on Windows but if you save often then it is OK.

I was unsure about it at first, but now I like wxGlade's notion of not
being a full-up IDE as it lets me choose the rest of the tool chain.
wxGlade will play happily with anything: vim, emacs, Eclipse/Pydev,
etc...


Don.
 
T

Ten

prepare to shed lots of tears before
overcoming the initial disbelieve, that there is nothing
better available for python.

Ahem - not strictly true - that should read "there is nothing better for
wxPython". Not being pedantic, it's just not true to say nothing better is
available for python.

Qtdesigner seems about on a par with the GUI design in Microsoft's Visual
Studio software to me.

Cheers,

Ten
 
F

Frithiof Andreas Jensen

Don Taylor said:
I find it easy to use sizers in
wxGlade.

Just gave is a spin yesterday: How does on fix the size of layout; I
can only manage to get sizers to distribute space evently amongst the
fields, which is *not* what I want.
 
D

Don Taylor

Frithiof said:
Just gave is a spin yesterday: How does on fix the size of layout; I
can only manage to get sizers to distribute space evently amongst the
fields, which is *not* what I want.

Use spacers.

Don.
 
T

Tim N. van der Leeuw

Are there any good commercial project built with wx ? I am a newbie and
a have to write a small application in Python. I was wondering which
optin would be best for me in terms of least learning curve and getting
the final product ASAP.

Thanks

It's not a commercial project, but the current BitTorrent beta's
(versions 4.9.x) are written with wx ...

To me, the appearant lack of a good and easy-to-use multi-column tree
widget was a showstopper to diving deeper into wxPython, though. I
decided to use PyGTK for now, which I'm a bit more familiar already and
which I know has a multi-column tree good enough for me (and I found it
easy to add inline-editing too).

I don't know how good PyQT is on windows; other than that, in my
opinion PyGTK gives the best / most complete GUI for Python with
reasonable ease-of-programming.


Cheers,

--Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,667
Latest member
DaniloB294

Latest Threads

Top