Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » should I use wxWidgets or is GTK+ enough? [RSS Feed]

#1 Oct. 27, 2005 13:42:30

bob s.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

should I use wxWidgets or is GTK+ enough?


I write windows programs but would like to start making my appscross-platform. Originally I thought that wxWidgets was the way to go,but I wanted to consider alternatives before I make the switch. Could Iaccomplish mostly the same thing by using GTK+ instead? WxWidgets uses gtk,I've heard, so maybe it's just another (unnecessary?) layer.

thanks,
Bob
_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#2 Oct. 27, 2005 14:22:50

Jose H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

should I use wxWidgets or is GTK+ enough?


> I write windows programs but would like to start making my apps
> cross-platform. Originally I thought that wxWidgets was the way to go,
> but I wanted to consider alternatives before I make the switch. Could I
> accomplish mostly the same thing by using GTK+ instead? WxWidgets uses
gtk,

Short answer: yes you could, if you know how to. I had made it for some
apps. Look at Inkscape (inkscape.org) for an example of what you could
expect in Windows with gtk/gtkmm. There has been some bugs with screen
redraw and windows stack order.
There is no (I dont know if exist) a "dont need to change a single line
of code" solution though. Mainly because Windows is not fully POSIX
compliant (file names and so).
WxWidgets uses gtk for Linux, I suppose it uses win32 in Windows.

> I've heard, so maybe it's just another (unnecessary?) layer

Personally, my own reason is to control 100% of my program.

Just a note:http://www.advogato.org/person/raph/diary.html?start=398Jose

_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#3 Oct. 27, 2005 14:28:45

Tor L.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

should I use wxWidgets or is GTK+ enough?


bob self writes:
> WxWidgets uses gtk, I've heard, so maybe it's just another
> (unnecessary?) layer.

I think wxWidgets uses GTK only on X11. On Windows it presumably uses
the Microsoft "widgets" (common controls, or whatever their official
name is).

--tml

_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#4 Oct. 27, 2005 14:32:29

Robert T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

should I use wxWidgets or is GTK+ enough?


I think GIMP uses GTK+ this way on Windows. It works, but it's slow on
Windows.
You don't have to use C++ which is an advantage.

> -----Original Message-----
> From:
> On Behalf Of bob self
> Sent: 27 October 2005 13:41
> To: gtk-l***@*nome.org
> Subject: should I use wxWidgets or is GTK+ enough?
>
> I write windows programs but would like to start making my
> apps cross-platform. Originally I thought that wxWidgets was
> the way to go, but I wanted to consider alternatives before I
> make the switch. Could I accomplish mostly the same thing by
> using GTK+ instead? WxWidgets uses gtk, I've heard, so maybe
> it's just another (unnecessary?) layer.
>
> thanks,
> Bob
> _______________________________________________
> gtk-list mailing list
> gtk-l***@*nome.org
>http://mail.gnome.org/mailman/listinfo/gtk-list>
_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#5 Oct. 27, 2005 22:55:39

Michael T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

should I use wxWidgets or is GTK+ enough?


On Thu, 2005-10-27 at 08:41 -0400, bob self wrote:
> I write windows programs but would like to start making my apps
> cross-platform. Originally I thought that wxWidgets was the way to go,
> but I wanted to consider alternatives before I make the switch. Could I
> accomplish mostly the same thing by using GTK+ instead? WxWidgets uses gtk,
> I've heard, so maybe it's just another (unnecessary?) layer.

I've wrestled with cross-platform developing off and on over the years.
Lately I've been using GTK mainly because I know it and it's easy.
Looks okay on windows, but feels alien. QT is another possibility, and
it does integrate much better on the 3 platforms (mac, win, lin) than
gtk, but comes with it's own issues and caveats.

Just using a toolkit that's available on all platforms does not make
your project automatically cross-platform. It's a matter of how you
code your C, which abstraction libraries you want to use.

I've come to conclusion that it is best to build your programs in a
loosely-coupled, modular fashion, keeping platform-dependent code in
layers, separate from the universal business logic, with a separate UI
layer. Then you try as much as possible to make the business logic
cross-platform, and call into your own platform-dependent layer when
necessary. The UI can then be written using whatever toolkit you want.
This is the only way to get an app that truly is at home on any
platform.

Michael


>
> thanks,
> Bob
> _______________________________________________
> gtk-list mailing list
> gtk-l***@*nome.org
>http://mail.gnome.org/mailman/listinfo/gtk-list--
Michael Torrie <>

_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#6 Oct. 28, 2005 08:19:08

Carlo A.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

should I use wxWidgets or is GTK+ enough?


bob self ha scritto lo scorso 27/10/2005 14:41:I write windows programs but would like to start making my appscross-platform. Originally I thought that wxWidgets was the way to go,but I wanted to consider alternatives before I make the switch. Could Iaccomplish mostly the same thing by using GTK+ instead? WxWidgets uses gtk,I've heard, so maybe it's just another (unnecessary?) layer.You have already got a lot of answer to your questions, but I would liketo add just another voice: I started developing apps under win32 usinggtk+; nowaday I love to code under linux, but my apps are generally rununder windows - just the same code for libraries and for gui, builtnatively with both mingw and msvc7. Users can choose their preferredtheme for gtk apps under windows, and until now I didn't have anyserious problem (that is, gtk codes are really cross-platform). ProbablyI am in a lucky condition, because all my apps deals with scientificcalculations and data display (in numeric or graphical form) and arewritten in C._______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#7 Oct. 29, 2005 15:11:12

Benjamin L.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

should I use wxWidgets or is GTK+ enough?


Or you could also use pygtk, the Python bindings to
GTK+. It's also easily gotten for Windows athttp://www.pcpm.ucl.ac.be/~gustin/win32_ports/index.htmlPyGTK: www.pygtk.org

Benjamin Lau



__________________________________
Meet your soulmate!
Yahoo! Asia presents Meetic - where millions of singles gatherhttp://asia.yahoo.com/meetic_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#8 Oct. 29, 2005 22:53:01

Gian M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

should I use wxWidgets or is GTK+ enough?


2005/10/29, Samuel Yin <>:
> But if your GUI app is complicated, python is not suitable because it is
> not as fast as gtk.

Python is a programming language and GTK is a Graphical User Interface
Toolkit, there is no point in compare the "speed" between those 2

cheers
--
Gian Mario Tagliaretti
PyGTK GUI programminghttp://www.parafernalia.org/pygtk/_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

  • Root
  • » GTK+
  • » should I use wxWidgets or is GTK+ enough? [RSS Feed]

Board footer

Moderator control

Enjoy the 18th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support