Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #87654
| Path | csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed3.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.006 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'differently': 0.07; 'bindings': 0.09; 'differing': 0.09; 'line:': 0.09; 'python': 0.11; 'gui': 0.12; '"from': 0.16; '"python': 0.16; '10:13': 0.16; 'effect,': 0.16; 'etc...': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'get,': 0.16; 'gobject': 0.16; 'ignoring': 0.16; 'subject:Glade': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'possible,': 0.19; 'examples': 0.20; 'example': 0.22; 'import': 0.22; 'header:User-Agent:1': 0.23; 'now?': 0.24; 'versions': 0.24; "i've": 0.25; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'is?': 0.30; "i'm": 0.30; '(which': 0.31; 'libraries': 0.31; 'stands': 0.31; 'figure': 0.32; 'google': 0.35; 'library.': 0.36; 'done': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'should': 0.36; 'searching': 0.37; 'easily': 0.37; 'message-id:@gmail.com': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'track': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'skip:u 10': 0.60; 'dave': 0.60; 'fashion': 0.64; 'more': 0.64; 'charset:windows-1252': 0.65; 'yes': 0.68; 'complexity': 0.84; 'subject:+': 0.91; 'url:latest': 0.91; 'choice.': 0.93 |
| X-Virus-Scanned | amavisd-new at torriefamily.org |
| Date | Tue, 17 Mar 2015 16:54:51 -0600 |
| From | Michael Torrie <torriem@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Python+Glade+Gtk tutorial? |
| References | <vgsdgahc4kf6pdt7822dke94upv56uhjbi@4ax.com> |
| In-Reply-To | <vgsdgahc4kf6pdt7822dke94upv56uhjbi@4ax.com> |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.19 |
| 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.505.1426632904.21433.python-list@python.org> (permalink) |
| Lines | 26 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1426632904 news.xs4all.nl 2941 [2001:888:2000:d::a6]:46102 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:87654 |
Show key headers only | View raw
On 03/16/2015 10:13 AM, Dave Farrance wrote: > So am I understanding this correctly: If I use this include line: > > "from gi.repository import Gtk, Gdk, GObject, Pango" etc... > > ... I get, in effect, the libraries used in Gnome-3 even with python2? > Whatever "gi.repository" is? It's a bit hard to figure this out from the > complexity of differing versions that I've turned up from Google searches. > > Am I on the right track now? Glade is a good choice for GUI building? And > even though I'm using Python2, I should be ignoring all examples turned up > by searching for "PyGTK" because they all seem to be GTK+2 and obsolete? > Is that "Python GTK+3 Tutorial" as good as any for me to work through? > > https://python-gtk-3-tutorial.readthedocs.org/en/latest/ Yes it's a good choice. And even with Python 2, GTK3 is a good choice also. GTK3 bindings are done somewhat differently than GTK2. They are done in a more dynamic fashion through introspection. The nice thing is, with the gi.repository thing (which stands for gobject introspection), you can easily make Python bindings to any GObject-based C library. If you want to use GTK2, that's also possible, and GtkBuilder does work with it. I can post an example if you want.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Python+Glade+Gtk tutorial? Dave Farrance <DaveFarrance@OMiTTHiSyahooANDTHiS.co.uk> - 2015-03-16 16:13 +0000
Re: Python+Glade+Gtk tutorial? Jason Heeris <jason.heeris@gmail.com> - 2015-03-17 16:22 +1100
Re: Python+Glade+Gtk tutorial? Dave Farrance <DaveFarrance@OMiTTHiSyahooANDTHiS.co.uk> - 2015-03-17 20:52 +0000
Re: Python+Glade+Gtk tutorial? Michael Torrie <torriem@gmail.com> - 2015-03-17 16:54 -0600
csiph-web