473,466 Members | 1,290 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

wxPython GUI designer

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.

Jun 18 '06 #1
12 8372
DH
di********@gmail.com wrote:
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.
Jun 18 '06 #2
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

DH wrote:
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.


Jun 18 '06 #3
di********@gmail.com 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
Jun 19 '06 #4
>
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


I use wxDesigner

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

Visit the python blog at http://360.yahoo.com/bucodi
Jun 19 '06 #5
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.



Jun 19 '06 #6

di********@gmail.com wrote:
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.

Jun 19 '06 #7
aum
On Sun, 18 Jun 2006 13:09:08 -0700, diffuser78 wrote:
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.

--

Cheers
aum
Jun 19 '06 #8
aum wrote:
On Sun, 18 Jun 2006 13:09:08 -0700, diffuser78 wrote:
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.


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.

Jun 20 '06 #9
Ten
On Monday 19 June 2006 15:23, DarkBlue wrote:
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

--
There are 10 types of people in this world,
those who understand binary, and those who don't.
Jun 20 '06 #10

"Don Taylor" <no************@gmail.com> wrote in message
news:ma***************************************@pyt hon.org...
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.
Jun 21 '06 #11
Frithiof Andreas Jensen wrote:
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.

Jun 22 '06 #12

di********@gmail.com wrote:
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

Jun 22 '06 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alexander DEJANOVSKI | last post by:
Retic 0.6 comes with 3 new major features : - Retic Administrator : a cross-platform (wxPython 2.4) GUI for creating/modifying adaptors and launching them. (replaces the buggy win32 Retic...
25
by: James Goldwater | last post by:
I'm starting a new hopfully-commercial project soon, and I face a dilemma about whether Python with wxPython would be appropriate. The project has 3 main areas: a) manipulation of lists and...
9
by: Rick Muller | last post by:
I have a problem that I would like to get some advice on from other Pythonistas. I currently manage a (soon to be) open source project for displaying molecular graphics for a variety of different...
217
by: gyromagnetic | last post by:
The following url points to an article written by Damian Conway entitled "Ten Essential Development Practices": http://www.perl.com/pub/a/2005/07/14/bestpractices.html Althought the article has...
3
by: Young H. Rhiu | last post by:
See: http://hilug.org/img/app_layout.GIF I'm implementing an album-like application with wxpython but I'm new to wxPython though I know how to program with python. The problem is that it's not...
7
by: Mr. Roboto | last post by:
Folks: I want to embark on a project to add Python (actually, wxPython or PythonWin) to a new Windows app I want to start writing soon. Essentially, I want to take VB6 (or pos Delphi) and...
6
by: stef | last post by:
hello, I was impressed by the demo shell of wxPython, and a few days ago (finally getting Dabo to work), I saw Dabo uses the same demo shell. Is there any more information available about...
44
by: bg_ie | last post by:
Hi, I'm in the process of writing some code and noticed a strange problem while doing so. I'm working with PythonWin 210 built for Python 2.5. I noticed the problem for the last py file...
2
by: OpenPavilion | last post by:
Hello, did anyone succeed in combining wxpython and a 3d engine (pyogre, crystalblend, panda3d, soya etc.) ? I would like to create an application, which uses wxpython tree, menu and grid...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.