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


Groups > comp.lang.python > #70916

Re: Glade on Windows using Python

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <torriem+gmail@torriefamily.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Windows': 0.02; 'url:sourceforge': 0.03; 'subject:Python': 0.06; 'tkinter': 0.07; 'ugly': 0.07; 'bindings': 0.09; 'subject:using': 0.09; 'python': 0.11; '2.7': 0.14; 'up-to-date': 0.14; 'windows': 0.15; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'rewriting': 0.16; 'subject:Glade': 0.16; 'url:html)': 0.16; 'wrote:': 0.18; 'code,': 0.22; 'header:User-Agent:1': 0.23; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'xml': 0.29; 'compared': 0.30; "i'm": 0.30; 'code': 0.31; 'bad.': 0.31; 'linux.': 0.31; 'project:': 0.31; 'class': 0.32; 'weeks': 0.32; 'url:python': 0.33; 'there': 0.35; "didn't": 0.36; 'url:org': 0.36; 'too': 0.37; 'message-id:@gmail.com': 0.38; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'ago,': 0.61; 'url:3': 0.61; 'here:': 0.62; 'suits': 0.84; 'url:latest': 0.91
X-Virus-Scanned amavisd-new at torriefamily.org
Date Sun, 04 May 2014 17:27:05 -0600
From Michael Torrie <torriem@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131118 Thunderbird/17.0.11
MIME-Version 1.0
To python-list@python.org
Subject Re: Glade on Windows using Python
References <62715f8a-8e45-4150-a3c9-ca1183fc6abb@googlegroups.com> <e2c08192-8e17-4827-9060-5a0220dc3026@googlegroups.com>
In-Reply-To <e2c08192-8e17-4827-9060-5a0220dc3026@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.9676.1399246041.18130.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1399246041 news.xs4all.nl 2857 [2001:888:2000:d::a6]:44933
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:70916

Show key headers only | 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