Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70916

Re: Glade on Windows using Python

Date 2014-05-04 17:27 -0600
From Michael Torrie <torriem@gmail.com>
Subject Re: Glade on Windows using Python
References <62715f8a-8e45-4150-a3c9-ca1183fc6abb@googlegroups.com> <e2c08192-8e17-4827-9060-5a0220dc3026@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.9676.1399246041.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 05/04/2014 01:51 PM, mbg1708@planetmail.com wrote:
> So...it turns out that Glade support for Python 2.7 is pretty difficult.
> I ended up rewriting the whole thing using Tkinter and ttk.Treeview.
> It would have been good to reuse the Glade XML...less code, better looking, etc. etc.

Both Gtk2 and Gtk3 are available for Windows.  Glade XML is typically
used on Gtk2 by the GtkBuilder class
(http://www.pygtk.org/pygtk2reference/class-gtkbuilder.html).  Gtk3 uses
http://python-gtk-3-tutorial.readthedocs.org/en/latest/builder.html.
The code you had in your OP was for Gtk3.

There are up-to-date packages of Gtk3 bindings for Python on Windows here:

http://sourceforge.net/projects/pygobjectwin32/files/

I didn't see your original post a couple of weeks ago, which is too bad.

I'm not sure Gtk is better-looking on Windows.  It's always been the
ugly step-child there compared to Linux.

Tkinter has a Windows native look and feel, so there's no reason to not
use Tkinter if it suits your project:
https://docs.python.org/3/library/tkinter.ttk.html

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Glade on Windows using Python mbg1708@planetmail.com - 2014-04-22 16:08 -0700
  Re: Glade on Windows using Python mbg1708@planetmail.com - 2014-05-04 12:51 -0700
    Re: Glade on Windows using Python Michael Torrie <torriem@gmail.com> - 2014-05-04 17:27 -0600

csiph-web