473,698 Members | 2,611 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What I don't like about wxPython

Just thought I'd play devil's advocate...

I tried wxPython briefly, and it had some nice features.

It has a huge list of dependencies.

I don't like the fonts (but I'd love to know how to get fixed fonts,
or at least anything that looks better on a small laptop screen.

TkInter seems much easier to use... less effort to do things.

jonathon
Jul 18 '05 #1
21 2369
j_mckitrick wrote:
Just thought I'd play devil's advocate...

I tried wxPython briefly, and it had some nice features.

It has a huge list of dependencies.
1. Python.
2. Windows.

Unless I misunderstand, and I'm sure I do, I wouldn't call that
a huge list...
I don't like the fonts (but I'd love to know how to get fixed fonts,
or at least anything that looks better on a small laptop screen.
wxPython uses whatever fonts are in the system already, doesn't
it? Again, I don't seem to understand...
TkInter seems much easier to use... less effort to do things.


Lots of people say that. Others say things like "it doesn't
fit my brain" and find more success with wxPython or other
frameworks. To each her own...

-Peter
Jul 18 '05 #2
Peter Hansen <pe***@engcorp. com> writes:
Just thought I'd play devil's advocate...
I tried wxPython briefly, and it had some nice features.
It has a huge list of dependencies.


1. Python.
2. Windows.

Unless I misunderstand, and I'm sure I do, I wouldn't call that
a huge list...


If wxPython really depends on Windows, that's a huge obstacle for
those wanting a portable system. If it doesn't literally depend on
Windows, but uses Windows-centric interfaces and approaches, that's
still pretty annoying for non-Windows developers.
Jul 18 '05 #3
Paul Rubin wrote:
Peter Hansen <pe***@engcorp. com> writes:
Just thought I'd play devil's advocate...
I tried wxPython briefly, and it had some nice features.
It has a huge list of dependencies.
1. Python.
2. Windows.

Unless I misunderstand, and I'm sure I do, I wouldn't call that
a huge list...


If wxPython really depends on Windows, that's a huge obstacle for
those wanting a portable system.


Well, it doesn't of course. I suppose I could remove it from
the list, which sort of supports the point I was making even
more...
If it doesn't literally depend on
Windows, but uses Windows-centric interfaces and approaches, that's
still pretty annoying for non-Windows developers.


That could be. I'm not a "Windows developer", however, in the sense
that I've never implemented the slightest thing resembling a GUI
on Windows using any Microsoft-specific things like MFC or whatever
it's called. If wxPython has Windows-centricisms, I certainly don't
notice them, so they don't annoy me. Maybe I'm just the exception
to your rule there...

-Peter
Jul 18 '05 #4
Peter Hansen wrote:
j_mckitrick wrote:
Just thought I'd play devil's advocate...

I tried wxPython briefly, and it had some nice features.

It has a huge list of dependencies.


1. Python.
2. Windows.


The Unix version requires at least Python, gtk, and wxlib. Gtk is
technically three libraries: gtk, gdk, and glib. gdk depends on
libpng, probably also libjpeg. The latest version has all kinds of
i18n dependencies.

Not that that isn't par for the course in Unix.
--
CARL BANKS http://www.aerojockey.com/software
"If you believe in yourself, drink your school, stay on drugs, and
don't do milk, you can get work."
-- Parody of Mr. T from a Robert Smigel Cartoon
Jul 18 '05 #5
On Sat, 08 May 2004 12:40:52 -0700, j_mckitrick wrote:
Just thought I'd play devil's advocate...

I tried wxPython briefly, and it had some nice features.

It has a huge list of dependencies.

I don't like the fonts (but I'd love to know how to get fixed fonts,
or at least anything that looks better on a small laptop screen.

TkInter seems much easier to use... less effort to do things.

jonathon


TkInter does seem a lot easier to deal with, but it doesnt provide nearly
as many widgets as wxPython, and in my experience, it doesnt handle
drawing as well. wxPython has a relatively comprehensive control set. My
major gripe with wxPython is the speed (lack thereof, actaully). On my
pIII 800, using linux, most large wxPython applications are too slow to be
usable, whereas comparable pyGTK applications run very smoothly. Seeing as
the linux version of wxwindows is gtk based, i'm still not quite sure why
there is such a massive speed difference.

Ultimately, none of these ui api's are as 'pythonic' as I want them to be,
and wxPython in particular seems like a carbon copy of the C api, which
makes it lose points in my book.

On my system, at least, Wx is too slow for large programs so I would
really only use it to make little gui wrappers for convenience scripts,
and as I dont usually need a comprehensive widget collection for that, I
typically find Tk to be better suited, as there seems to be less overhead.

I do use Wx for programmatic drawing when PIL doesnt do quite enough.

Wx doesnt have a 'huge list of dependancies' but it is in and of itself an
unnecessary bulk. Tk comes with python and has a slightly more
pythonic api, so I just use it.

in any event, thats my incoherent thought for today.

Jul 18 '05 #6
Ryan Paul wrote:
Ultimately, none of these ui api's are as 'pythonic' as I want them
to be, and wxPython in particular seems like a carbon copy of the C
api, which makes it lose points in my book.


I agree with this; that API seems completely incongruous in a
Python program.

--
--OKB (not okblacke)
Brendan Barnwell
"Do not follow where the path may lead. Go, instead, where there is
no path, and leave a trail."
--author unknown
Jul 18 '05 #7
OKB (not okblacke) <Br******@aol.c om> pisze:
Ultimately, none of these ui api's are as 'pythonic' as I want them
to be, and wxPython in particular seems like a carbon copy of the C
api, which makes it lose points in my book.


I agree with this; that API seems completely incongruous in a
Python program.


It has been told and written many times. If you look something "more
pythonic" yet still such powerful, you can use some wrapper on wxPython.
Wax first comes to my mind, look for it in PyPi.

--
Jarek Zgoda
http://jpa.berlios.de/
Jul 18 '05 #8
Paul Rubin <http://ph****@NOSPAM.i nvalid> wrote in message news:<7x******* *****@ruckus.br ouhaha.com>...
[snip..]
If wxPython really depends on Windows, that's a huge obstacle for
those wanting a portable system. If it doesn't literally depend on
Windows, but uses Windows-centric interfaces and approaches, that's
still pretty annoying for non-Windows developers.


Couple of points:
wxPython is very cross-platform, I've used the same program on Windows
and Linux and it looks fine on both. The Mac OS X port appears to be
coming along very well.
wxPython is (deliberately) a thin wrapper of the C++ classes in the
wxWidgets package (used to be called wxWindows). So it supports all
the platforms wxWidgets does.
And, yes, it's not pythonic; the wax package is supposed to fix that,
though I personally don't have experience with it.
Jul 18 '05 #9
In article <pa************ *************** *@sbcglobal.net >,
Ryan Paul <se*******@sbcg lobal.net> wrote:
Jul 18 '05 #10

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

Similar topics

16
2413
by: mike420 | last post by:
Tayss wrote: > > app = wxPySimpleApp() > frame = MainWindow(None, -1, "A window") > frame.Show(True) > app.MainLoop() > Why do you need a macro for that? Why don't you just write
53
6436
by: Paul Rubin | last post by:
I've been approached about writing a Windows app which will need a really professional looking GUI. Forget TKinter, this has to actually look good (real artists will be available to get the visual stuff right). Assuming I write in Python, what's the best toolkit to use? Some cost in implementation pain is tolerable if the finished interface looks better as a result. It would be nice if the toolkit runs on multiple platforms rather than...
3
2880
by: Robert | last post by:
Hello list, could somebody point me to a good reference about wxPython event handling? I have seen many examples but which one is the best. Waht are the advantages and disadvantages? Can you also have a short look at the example below and give me some comments, please? Example:
19
3420
by: Grant Edwards | last post by:
I've decided to learn wxPython, and I'm afraid I just don't grok the whole "id" thing where you have to pull unique integers out of your, er, the air and then use those to refer to objects: From whe wxPython wiki examples: self.button =wxButton(self, 10, "Save", wxPoint(200, 325)) EVT_BUTTON(self, 10, self.OnClick)
92
6477
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption? cheers, reed
12
12653
by: Tom | last post by:
1) Portable to Windows, Unix-like platforms, and the Macintosh; 2) Powerful, GUI is very beautiful ; 3) Efficiency of development is high; What's the best, Tkinter, wxPython, QT, GTK or other? Thanks!
6
1411
by: iclinux | last post by:
I have to build a GUI applicaiton that could run on different OS such as windows and *nix, which GUI toolkit is better? Best Regards.
10
2994
by: Frank Millman | last post by:
Hi all I am writing a multi-user accounting/business application, which uses sockets to communicate between server and client. The server contains all the business logic. It has no direct knowledge of the client. I have devised a simple message format to exchange information between the two. At first, I used XML as a message format. Then I read the article that recommended not using XML for Python-to-Python, so I changed it to a
5
4288
by: Stef Mientki | last post by:
Abah Joseph wrote: I agree about the Qt-license, and I'm now a happy wxPython user. cheers, Stef
0
8610
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8902
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6528
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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 we have to send another system

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.