Cross-Platform GUI: Compatible Windows & Linux Solutions

  • Thread starter Thread starter CRGreathouse
  • Start date Start date
  • Tags Tags
    Gui
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 3K views
Messages
2,832
Reaction score
0
I'm thinking about writing a GUI program (a wrapper to multithread loops and automate tasks) and I was wondering if there was a way to do this in a compatible way across Windows and Linux. You see, I'm running XP at home now but I think I may convert to Xubuntu in the near future. Should I just resign myself to coding this twice, or is there a way to do what I want?
 
Physics news on Phys.org
Plenty of ways. wxWidgets, Qt, Tkinter, Gtk+, and so on. If Python is sufficient to act as a wrapper for your code, Tkinter would probably be the quickest way of doing things in a very portable manner (although it won't look beautiful).
 
In addition to shoehorn's suggestions, I would like to suggest Java and it's SWING interface.
 
shoehorn said:
Plenty of ways. wxWidgets, Qt, Tkinter, Gtk+, and so on. If Python is sufficient to act as a wrapper for your code, Tkinter would probably be the quickest way of doing things in a very portable manner (although it won't look beautiful).

I'll look into Tkinter, thanks.
 
Qt is pretty easy to use and includes a crossplatform threading library, unfortunately you must either GPL your code or pay for a development license.
 
Coin said:
Qt is pretty easy to use and includes a crossplatform threading library, unfortunately you must either GPL your code or pay for a development license.

WxWidgets allow you to use it for both GPL and commercial usage for free.