473,748 Members | 11,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cross-platform GUI development

I've been programming in Python for 5 or more years now and whenever I
want a quick-n-dirty GUI, I use Tkinter. This is partly because it's
the first toolkit I learnt, but also because it's part of the standard
Python distribution and therefore easy to get Python apps to work
cross platform - it usually requires almost no porting effort.

However, when I need a little bit more grunt, I tend to turn to Tix,
which I thought was also fairly standard. However, this week, I wrote
a Tix application under Linux which I'd really like to work on Mac OS
and it's proving fairly painful to get it going. There is no Tix in
the standard fink or apt repositories and when I download a tar-ball,
it wouldn't build because it had a lot of unmet dependencies. I then
read a post which said that only Tkinter/Python people really use Tix
anymore and people in tcl/tk moved onto better toolkits long ago.

My question is if Tix is old hat, what is the GUI toolkit I *should*
be using for quick-n-dirty cross platform GUI development? I guess
this is tangentially related to:

http://groups.google.com/group/comp....ed0d40ffd0b1c0

I hope this isn't a stupid question. I'm wearing flame retardant
underwear.

Peter

Oct 12 '07
29 1996
Alexandre Badez wrote:
Personnaly, I use PyQt simply because I prefere Qt to Gtk, witch is
much more integrated with all desktop than Gtk.
In fact, your application in Qt on Mac, Win or Linux look like a
native app.
Qt doesn't look very native on my desktop. In fact, Qt apps have always
looked out of place on a Gnome desktop.

On Windows and Mac, no question, they look pretty native. You do have
to take pains to make the app "feel" native, though. Like follow the UI
guidelines of the platform, etc.
>
Just a question of "feeling" I think; because most of those GUI
framework, offer quiet the same functionality.
>
Oct 13 '07 #11
Hello,

I would recommend pyGTK http://www.pygtk.org/
- your app does look the same on all platform (like for Tkinter) (This
argurment apply if the same user would like to run the same app on
different platform and thus do not want to see something different on
each platform...)
- easy to install on all platform:
An all in one installed exist for windows:
http://aruiz.typepad.com/siliconisla...ne_win32_.html
- it looks nice and simple (it is originally the Gimp toolkit).

Just my two cents,

David
2007/10/12, ps******@google mail.com <ps******@googl email.com>:
I've been programming in Python for 5 or more years now and whenever I
want a quick-n-dirty GUI, I use Tkinter. This is partly because it's
the first toolkit I learnt, but also because it's part of the standard
Python distribution and therefore easy to get Python apps to work
cross platform - it usually requires almost no porting effort.

However, when I need a little bit more grunt, I tend to turn to Tix,
which I thought was also fairly standard. However, this week, I wrote
a Tix application under Linux which I'd really like to work on Mac OS
and it's proving fairly painful to get it going. There is no Tix in
the standard fink or apt repositories and when I download a tar-ball,
it wouldn't build because it had a lot of unmet dependencies. I then
read a post which said that only Tkinter/Python people really use Tix
anymore and people in tcl/tk moved onto better toolkits long ago.

My question is if Tix is old hat, what is the GUI toolkit I *should*
be using for quick-n-dirty cross platform GUI development? I guess
this is tangentially related to:

http://groups.google.com/group/comp....ed0d40ffd0b1c0

I hope this isn't a stupid question. I'm wearing flame retardant
underwear.

Peter

--
http://mail.python.org/mailman/listinfo/python-list
Oct 13 '07 #12
On 2007-10-13, David Tremouilles <da********@gma il.comwrote:
I would recommend pyGTK http://www.pygtk.org/
Native GTK on OSX is still in its infancy. For early adopters only at
this point. See

http://www.oreillynet.com/articles/author/2414

That leaves PyQt and WxPython as the only other realistic choices.
Licensing issues aside, I think Qt has the most polished and well
thought out API. The OSX Tiger dev tools include WxPython, though you
may want to install a newer version. I suggest installing both and
trying some of the included examples.

Another possibility is Jython, if you like the Java way of doing
things.

Dave Cook

Oct 13 '07 #13
No issue with pygtk on mac!
Actually I develop on this platform everyday. Macport take care of the
installation for me http://www.macports.org/ (Fink should do the work
too).
Of course native GTK on OSX could be nice but definitely not needed at
this point in time.

David

2007/10/13, Dave Cook <da******@nowhe re.net>:
On 2007-10-13, David Tremouilles <da********@gma il.comwrote:
I would recommend pyGTK http://www.pygtk.org/

Native GTK on OSX is still in its infancy. For early adopters only at
this point. See

http://www.oreillynet.com/articles/author/2414

That leaves PyQt and WxPython as the only other realistic choices.
Licensing issues aside, I think Qt has the most polished and well
thought out API. The OSX Tiger dev tools include WxPython, though you
may want to install a newer version. I suggest installing both and
trying some of the included examples.

Another possibility is Jython, if you like the Java way of doing
things.

Dave Cook

--
http://mail.python.org/mailman/listinfo/python-list
Oct 13 '07 #14
On 2007-10-13, David Tremouilles <da********@gma il.comwrote:
No issue with pygtk on mac!
If running on top of X11 is no problem.
Actually I develop on this platform everyday. Macport take care of the
installation for me http://www.macports.org/ (Fink should do the work
too).
In that case I'd recommend kiwi as well

http://www.async.com.br/projects/kiwi/

Dave Cook
Oct 13 '07 #15
David Tremouilles wrote:
No issue with pygtk on mac!
Actually I develop on this platform everyday. Macport take care of the
installation for me http://www.macports.org/ (Fink should do the work
too).
Of course native GTK on OSX could be nice but definitely not needed at
this point in time.
"Native" Gtk on the Mac still isn't really native. I tried a "native"
build of Wireshark and was very disappointed. Yes, it uses Quartz/Aqua
instead of X to draw Windows, but it completely ignores other Aqua
interface conventions--the menu is still attached to each window instead
of at the top of the screen, buttons aren't Aqua buttons, and so on.
Based on what I've seen, I don't think Gtk is really viable as a native
Mac development environment; it looks as weird as Fltk, which also uses
Aqua windowing but which also draws its own widgets and puts the menubar
on each window.

Tk does much better; while it's not very pretty, menubars are in the
correct place and buttons work correctly.

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Oct 13 '07 #16
David Tremouilles wrote:
No issue with pygtk on mac!
Actually I develop on this platform everyday. Macport take care of the
installation for me http://www.macports.org/ (Fink should do the work
too).
Of course native GTK on OSX could be nice but definitely not needed at
this point in time.
"Native" Gtk on the Mac still isn't really native. I tried a "native"
build of Wireshark and was very disappointed. Yes, it uses Quartz/Aqua
instead of X to draw Windows, but it completely ignores other Aqua
interface conventions--the menu is still attached to each window instead
of at the top of the screen, buttons aren't Aqua buttons, and so on.
Based on what I've seen, I don't think Gtk is really viable as a native
Mac development environment; it looks as weird as Fltk, which also uses
Aqua windowing but which also draws its own widgets and puts the menubar
on each window.

Tk does much better; while it's not very pretty, menubars are in the
correct place and buttons work correctly.

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Oct 13 '07 #17
David Tremouilles schrieb:
No issue with pygtk on mac!
Actually I develop on this platform everyday. Macport take care of the
installation for me http://www.macports.org/ (Fink should do the work
too).
Of course native GTK on OSX could be nice but definitely not needed at
this point in time.
It sure looks crappy in comparison to the rest of the OSX apps - and
given that with Qt (and of course the brilliant PyObjc-bridge) there
exist options that look & feel waaay better, I wouldn't consider using GTK.
Oct 13 '07 #18
"crappy", "waaay better"
I will not feed the troll...
Pygtk on mac just do the work for me on a more than satisfying way.

David

2007/10/13, Diez B. Roggisch <de***@nospam.w eb.de>:
David Tremouilles schrieb:
No issue with pygtk on mac!
Actually I develop on this platform everyday. Macport take care of the
installation for me http://www.macports.org/ (Fink should do the work
too).
Of course native GTK on OSX could be nice but definitely not needed at
this point in time.

It sure looks crappy in comparison to the rest of the OSX apps - and
given that with Qt (and of course the brilliant PyObjc-bridge) there
exist options that look & feel waaay better, I wouldn't consider using GTK.
--
http://mail.python.org/mailman/listinfo/python-list
Oct 15 '07 #19
On Sat, 13 Oct 2007 06:34:14 +0200, Michael L Torrie
<to*****@chem.b yu.eduwrote:
[snip]
You do have
to take pains to make the app "feel" native, though. Like follow the UI
guidelines of the platform, etc.
You're absolutely right; I just wanted to add a precision: it's true for
every toolkit, not only Qt...
--
python -c "print ''.join([chr(154 - ord(c)) for c in
'U(17zX(%,5.zmz 5(17l8(%,5.Z*(9 3-965$l7+-'])"
Oct 15 '07 #20

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

Similar topics

0
2051
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics, manifolds, science, physics, chemistry, law, legal, government, home, office, business, domain lookup, medical, travel, food, university students, searching, searchers, surfing, advanced search, search tools Chemistry, mathematics, physical sciences,...
12
3879
by: * ProteanThread * | last post by:
but depends upon the clique: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=954drf%24oca%241%40agate.berkeley.edu&rnum=2&prev=/groups%3Fq%3D%2522cross%2Bposting%2Bversus%2Bmulti%2Bposting%2522%26ie%3DUTF-8%26oe%3DUTF-8%26hl%3Den ...
3
3114
by: rollasoc | last post by:
Hi, Doing a bit of system testing on a Windows 98 laptop. (.Net 1.1 app). Did a bit of testing. Loaded a previously saved file. A gray box appeared with the text and buttons all white rectangles with a big red cross in it. Pressed a button (the one I thought might be ok). My file appeared to load. Then when I clicked on any button on my form, the button was replaced with a white rectangle with a big red cross in it.
0
1891
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics, manifolds, science, physics, chemistry, law, legal, government, home, office, business, domain lookup, medical, travel, food, university students, searching, searchers, surfing, advanced search, search tools Chemistry, mathematics, physical sciences,...
23
6541
by: Jeff Rodriguez | last post by:
Here's what I want do: Have a main daemon which starts up several threads in a Boss-Queue structure. From those threads, I want them all to sit and watch a queue. Once an entry goes into the queue, grab it and run a system command. Now I want to make sure that system command doesn't hang forever, so I need some way to kill the command and have the worker thread go back to work waiting for another queue entry.
0
2057
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics, manifolds, science, physics, chemistry, law, legal, government, home, office, business, domain lookup, medical, travel, food, university students, searching, searchers, surfing, advanced search, search tools Chemistry, mathematics, physical sciences,...
1
2764
by: Rob Woodworth | last post by:
Hi, I'm having serious problems getting my report to work. I need to generate a timesheet report which will contain info for one employee between certain dates (one week's worth of dates). I have a table containing records for each job done, the records contain date, employee name, job done (a code representing the type of job), cost code (another code), regular hours, and overtime hours. The tricky part is that more than one job can...
6
8633
by: Simon | last post by:
Hi All, An experiment i'm doing requires requires a synchronous cross-domain request, without using a proxy. I wondered if anyone had any ideas to help me achieve this. Below is what I have tried, including my conclusions/assumptions (which i'll happily be corrected on if it solves my problem!): The requirement not to use a proxy means I can't use the synchronous
6
5481
by: Bart Van der Donck | last post by:
Hello, I'm presenting my new library 'AJAX Cross Domain' - a javascript extension that allows to perform cross-domain AJAX requests. http://www.ajax-cross-domain.com/ Any comments or suggestions are welcome. --
6
3988
by: ampo | last post by:
Hello. Can anyone help with cross-domain problem? I have HTML page from server1 that send xmlHTTPRequest to server2. How can I do it? Thanks.
0
8989
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8828
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
9367
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
9319
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,...
0
8241
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
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
4599
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...
1
3309
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
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.