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: 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 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> In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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