473,699 Members | 2,311 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 1985
David Tremouilles wrote:
"crappy", "waaay better"
I will not feed the troll...
Pygtk on mac just do the work for me on a more than satisfying way.

If that's the case, good for you. If your application is open-source,
then perhaps it's not unreasonable to expect your users to adapt to the
way you do things--and there are enough Unix-savvy Mac users who won't
be put off by an X11-based app. (Heck, I use Gimp and Inkscape all the
time!) However, if you want to develop your application commercially,
*very* few Mac end users, even Unix-savvy ones, will pay for an
X11-based tool. I know I've opted not to purchase WingIDE, for instance,
because it's X11-based (PyGtk in fact) and because I can find plenty of
Mac-native programming tools. The interface quirks of the free Gimp are
tolerable because Photoshop is several hundred dollars, but I am not
willing to pay a few hundred dollars for a commercial tool that has the
same interface glitches.
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Oct 15 '07 #21
David Tremouilles wrote:
"crappy", "waaay better"
I will not feed the troll...
Pygtk on mac just do the work for me on a more than satisfying way.

If that's the case, good for you. If your application is open-source,
then perhaps it's not unreasonable to expect your users to adapt to the
way you do things--and there are enough Unix-savvy Mac users who won't
be put off by an X11-based app. (Heck, I use Gimp and Inkscape all the
time!) However, if you want to develop your application commercially,
*very* few Mac end users, even Unix-savvy ones, will pay for an
X11-based tool. I know I've opted not to purchase WingIDE, for instance,
because it's X11-based (PyGtk in fact) and because I can find plenty of
Mac-native programming tools. The interface quirks of the free Gimp are
tolerable because Photoshop is several hundred dollars, but I am not
willing to pay a few hundred dollars for a commercial tool that has the
same interface glitches.
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Oct 15 '07 #22
David Tremouilles wrote:
"crappy", "waaay better"
I will not feed the troll...
Pygtk on mac just do the work for me on a more than satisfying way.
I should have worded more carefully, it wasn't intended as trolling. Sorry
for that.

But the point I wanted to make still stands - the native look of OSX is very
distinctive. So if it's anyhow possible, I'd recommend using PyObjc +
native Cocoa.

Yet as the OP asked for Cross-platform, the Qt-gui is pretty close,
especially with Qt4.

And I'm sorry to say so, but GTK within X11 looks very alien to the regular
OSX user.

I personally don't mind that (using inkscape & gimp) - but I wouldn't impose
that on my users. And not only for the looks, but also for the lack of
integration with the OSX windowmanager.

Diez
Oct 15 '07 #23
On Oct 13, 12:34 am, Michael L Torrie <torr...@chem.b yu.eduwrote:
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.
GTK (like Pidgin or the GIMP) looks pretty native on Windows to me.
Years of using Windows is probably why I think GTK/GNOME looks better
than Qt/KDE.

Oct 23 '07 #24
On 10/23/07, maco <ma*****@gmail. comwrote:
On Oct 13, 12:34 am, Michael L Torrie <torr...@chem.b yu.eduwrote:
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.

GTK (like Pidgin or the GIMP) looks pretty native on Windows to me.
This can only be because you don't use these programs often, or you've
never actually looked at them. The GIMP in particular has almost
nothing in common with the native controls - it's got a different
background color, a different drawing model (note nasty delayed
repaints when resizing), clearly non-native dialogs like file pickers,
non-standard menu icons, just a huge list.

Pidgin has a fairly minimal interface so it's flaws are less obvious,
but they're still there.

If this doesn't bother you, more power to you, but don't make the
mistake of thinking that GIMP is any way "native" on windows.
Years of using Windows is probably why I think GTK/GNOME looks better
than Qt/KDE.

--
http://mail.python.org/mailman/listinfo/python-list
Oct 23 '07 #25
On Oct 23, 2:59 pm, "Chris Mellon" <arka...@gmail. comwrote:
On 10/23/07, maco <maco...@gmail. comwrote:

On Oct 13, 12:34 am, Michael L Torrie <torr...@chem.b yu.eduwrote:
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.
GTK (like Pidgin or the GIMP) looks pretty native on Windows to me.

This can only be because you don't use these programs often, or you've
never actually looked at them. The GIMP in particular has almost
nothing in common with the native controls - it's got a different
background color, a different drawing model (note nasty delayed
repaints when resizing), clearly non-native dialogs like file pickers,
non-standard menu icons, just a huge list.

Pidgin has a fairly minimal interface so it's flaws are less obvious,
but they're still there.

If this doesn't bother you, more power to you, but don't make the
mistake of thinking that GIMP is any way "native" on windows.
In the end, GTK+ is themable, and it's a free software project, so if
the MS Windows port has warts, anyone can come along and polish it up
for that platform.

Oct 25 '07 #26
On Oct 12, 6:30 am, Nick Craig-Wood <n...@craig-wood.comwrote:
>
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!
My impression has always been that a number of people use wx because
of its API similarities to some MS Windows GUI toolkit or other.

Oct 25 '07 #27
On 10/24/07, bramble <ca***********@ gmail.comwrote:
On Oct 23, 2:59 pm, "Chris Mellon" <arka...@gmail. comwrote:
On 10/23/07, maco <maco...@gmail. comwrote:

On Oct 13, 12:34 am, Michael L Torrie <torr...@chem.b yu.eduwrote:
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.
GTK (like Pidgin or the GIMP) looks pretty native on Windows to me.
This can only be because you don't use these programs often, or you've
never actually looked at them. The GIMP in particular has almost
nothing in common with the native controls - it's got a different
background color, a different drawing model (note nasty delayed
repaints when resizing), clearly non-native dialogs like file pickers,
non-standard menu icons, just a huge list.

Pidgin has a fairly minimal interface so it's flaws are less obvious,
but they're still there.

If this doesn't bother you, more power to you, but don't make the
mistake of thinking that GIMP is any way "native" on windows.

In the end, GTK+ is themable, and it's a free software project, so if
the MS Windows port has warts, anyone can come along and polish it up
for that platform.
There's been plenty to say about this in the past, so I will be brief:
Being able to use the native theme API is necessary but not sufficient
for native look and feel. Gtk doesn't even try for anything other than
a cursory attempt at "look", and as far as I know doesn't have any
real interest in doing so.

I don't have any problem than that, but I don't like people
misrepresenting what you get from using Gtk.
--
http://mail.python.org/mailman/listinfo/python-list
Oct 25 '07 #28
On Oct 25, 6:32 am, "Chris Mellon" <arka...@gmail. comwrote:
On 10/24/07, bramble <cadet.bram...@ gmail.comwrote:
In the end, GTK+ is themable, and it's a free software project, so if
the MS Windows port has warts, anyone can come along and polish it up
for that platform.

There's been plenty to say about this in the past, so I will be brief:
Being able to use the native theme API is necessary but not sufficient
for native look and feel. Gtk doesn't even try for anything other than
a cursory attempt at "look", and as far as I know doesn't have any
real interest in doing so.

I don't have any problem than that, but I don't like people
misrepresenting what you get from using Gtk.
Sorry, I didn't mean to misrepresent GTK+. I clumsily jammed 2 ideas
into one sentence: one, that theming can mitigate some issues with
differences in L&F ("look and feel"), and two, that it's free
software, so contributors can try and make the L&F more native if it's
really that big a deal.

One reason I'm not crazy about wx because I don't like the idea of
adding yet another API layer into the mix. Wx seems quite large, and
if issues arise, debugging a GUI that calls another GUI does not seem
like a fun way to spend your time. Anyhow, my opinion is, pick one
good enough native GNU/Linux GUI toolkit that the community can
somewhat standardize on (and GTK+/PyGTK seems to fit that bill pretty
well), write your apps in that so they run really well on GNU/Linux
distros, and *then* get your apps running on secondary OS's as-needed.

Oct 25 '07 #29
bramble <ca***********@ gmail.comwrote:
[ GTK is ] free
software, so contributors can try and make the L&F more native if it's
really that big a deal.
But the people who care about Windows native L&F are not the people
with the resources (time, money, probably experience) to address
this issue. And the people who do probably don't care. If you're
developing an app where it matters, it's much easier to just go with
the option that gives the right L&F out of the box.
>One reason I'm not crazy about wx because I don't like the idea of
adding yet another API layer into the mix. Wx seems quite large, and
if issues arise, debugging a GUI that calls another GUI does not seem
like a fun way to spend your time.
I used to maintain a couple of commercial wxPython apps which were
only ever meant to run on Windows, and the native L&F was the
primary driver behind the choice of wx. Because Linux is my
development platform of choice, I wound up trying to run them there
as well. For a supposedly cross-platform library, it required a lot
of porting effort. And, as you say, when things go wrong it's
difficult to know whether to lay it at the feet of wxPython, wx or
GTK. (And then bear in mind that GTK is layered on top of X....)

--
\S -- si***@chiark.gr eenend.org.uk -- http://www.chaos.org.uk/~sion/
"Frankly I have no feelings towards penguins one way or the other"
-- Arthur C. Clarke
her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
Oct 26 '07 #30

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

Similar topics

0
2048
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
3875
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
3107
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
1887
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
6532
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
2052
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
2762
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
8628
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
5479
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
3981
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
8685
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
9172
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
9032
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...
0
8880
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7745
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...
0
5869
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
4626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3054
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
2344
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.