473,569 Members | 2,590 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 #1
29 1975
On Oct 12, 10:13 am, "psaff...@googl email.com"
<psaff...@googl email.comwrote:
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....thread/thread/...

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

Peter
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.

Just a question of "feeling" I think; because most of those GUI
framework, offer quiet the same functionality.

Oct 12 '07 #2
Alexandre Badez <al************ *@gmail.comwrot e:
On Oct 12, 10:13 am, "psaff...@googl email.com"
<psaff...@googl email.comwrote:
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....thread/thread/...

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.
I'd recommend wxPython over those becase

1) native look and feel on all platforms
2) doesn't require expensive licensing for non-commercial apps (QT)
3) Isn't a pain to install on windows (GTK)

That said, times change and 1-3 may have changed since I last looked
at it!

--
Nick Craig-Wood <ni**@craig-wood.com-- http://www.craig-wood.com/nick
Oct 12 '07 #3
On Fri, 12 Oct 2007 10:13:29 +0200, ps******@google mail.com
<ps******@googl email.comwrote:
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?
Since you're already used to Tkinter, I'd say: just wait... tcl/tk 8.5 is
on the way and it will bring a lot of new and long-awaited widgets, along
with native look on most platforms. See here:
http://wiki.tcl.tk/14796
and here for the look:
http://tktable.sf.net/tile/

Note that there are already Tkinter wrappers for these widgets, but they
may not be the ones that'll end up in the official distribution. If you
want to play with them, you can find them here:
https://sourceforge.net/project/show...roup_id=165637
(download tkinter-wrappers)

If you want to use these, you'll of course also need the latest beta of
tcl/tk 8.5, downloadable from here:
http://www.tcl.tk/software/tcltk/8.5.html
I hope this isn't a stupid question. I'm wearing flame retardant
underwear.
You won't need these much around here... ;-)

HTH
--
python -c "print ''.join([chr(154 - ord(c)) for c in
'U(17zX(%,5.zmz 5(17l8(%,5.Z*(9 3-965$l7+-'])"
Oct 12 '07 #4
On 10/12/07, ps******@google mail.com <ps******@googl email.comwrote:
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 would heartily recommend Dabo (http://dabodev.com). It wraps the
wxPython toolkit, but eliminates 99% of the hassle in dealing with the
C++ feel of wxPython. And while it is supposed to be for
database-related apps, it works great for UI-only apps, which is what
I use it for.

--

# p.d.
Oct 12 '07 #5
On 2007-10-12, Alexandre Badez <al************ *@gmail.comwrot e:
Personnaly, I use PyQt simply because I prefere Qt to Gtk,
witch is much more integrated with all desktop than Gtk.
So you're claiming Qt is much more integrated with Gnome than
Gtk? The mind wobbles. The Gnome and XFCE desktops are _built_
using Gtk. A machine running a Gnome or XFCE desktop doesn't
even need to have Qt installed. The same can be said for
various other deskops (openstep, equinox, etc. -- most of them
other than KDE, actually).
In fact, your application in Qt on Mac, Win or Linux look like
a native app.
Qt sure doesn't look native on my Linux machines, and it's not
going to look native on any GTK-based desktops such an Gnome or
XFCE. Qt will only look native on Linux machines running a Qt
based desktop such as KDE.
Just a question of "feeling" I think; because most of those
GUI framework, offer quiet the same functionality.
I use wxPython, because it uses Gtk on Linux, and Gtk is
"native" for both me and for my Windows users.

--
Grant Edwards grante Yow! My Aunt MAUREEN was a
at military advisor to IKE &
visi.com TINA TURNER!!
Oct 12 '07 #6
On 2007-10-12, BlueBird <ph**@freehacke rs.orgwrote:
>I'd recommend wxPython over those becase

1) native look and feel on all platforms
Not true for KDE or other non-Gtk desktops.
You get it with PyQt as well.
Not true for Gnome or other non-Qt desktops.

There is no single "native look and feel" for Linux systems.

There are about a half-dozen different widget sets (Gtk and Qt
being the two big ones).

--
Grant Edwards grante Yow! !! I am having fun!!!
at
visi.com
Oct 12 '07 #7
On 2007-10-12, Grant Edwards <gr****@visi.co mwrote:
I use wxPython, because it uses Gtk on Linux, and Gtk is
"native" for both me and for my Windows users.
I didn't state that very well.

What I meant was that wxPython uses Gtk under Linux (which is
native for me) so wxPython looks native for both me and my
Windows users.

--
Grant Edwards grante Yow! I demand IMPUNITY!
at
visi.com
Oct 12 '07 #8
ps******@google mail.com wrote:
>
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:
What widgets are you using in Tix? They may be available in BWidgets,
Tablelist, or other script-level Tk exetensions (i.e. they do not
require compiliaton). Wrappers for many of these are available at the
Tkinter wiki (http://tkinter.unpythonic.net/wiki/FrontPage)

--Kevin

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Oct 12 '07 #9
On Fri, 12 Oct 2007 05:30:13 -0500, Nick Craig-Wood wrote:

3) Isn't a pain to install on windows (GTK)
pygtk is easy to install on windows if you use cygwin.

I started developing a little ssh GUI frontend on a windows laptop using
cygwin pygtk and cygwin openssh. When I moved it over to a Linux VMware
on the same laptop to finish it, the code Just Worked.
Oct 12 '07 #10

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

Similar topics

0
2040
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,...
12
3851
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
3086
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...
0
1875
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,...
23
6497
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...
0
2047
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,...
1
2754
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...
6
8608
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...
6
5468
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
3973
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
7615
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...
0
7924
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. ...
1
5514
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...
0
5219
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...
0
3653
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...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2115
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
1
1223
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
940
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.