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


Groups > comp.lang.python > #4880

PyGTK, Glade/libglade. What am I doing wrong?

Return-Path <daniil.re@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'displayed': 0.03; 'filename:fname piece:py': 0.04; 'sys': 0.04; '__name__': 0.07; 'python': 0.07; '"__main__":': 0.09; 'skip:{ 20': 0.09; 'def': 0.13; '"""this': 0.16; 'except:': 0.16; 'executed,': 0.16; 'subject:Glade': 0.16; 'subject:PyGTK': 0.16; 'subject:wrong': 0.16; 'sys.exit(1)': 0.16; 'url:pastebin': 0.16; '(most': 0.16; 'trying': 0.23; 'last):': 0.23; 'received:209.85.213': 0.23; 'wrong?': 0.23; 'wrote': 0.25; 'skip:# 10': 0.25; "wasn't": 0.25; 'script': 0.26; "i'm": 0.26; 'pass': 0.27; 'tried': 0.27; 'message-id:@mail.gmail.com': 0.28; 'subject:?': 0.29; 'class': 0.29; '---': 0.31; 'wishes,': 0.31; 'it.': 0.31; 'import': 0.32; 'to:addr:python-list': 0.32; 'sorry': 0.33; 'test': 0.33; 'skip:" 10': 0.34; 'file': 0.35; 'subject:What': 0.35; 'try:': 0.35; 'doing': 0.36; 'subject:/': 0.36; 'charset:us-ascii': 0.36; 'received:209.85': 0.37; 'run': 0.37; 'received:google.com': 0.38; 'anything': 0.38; 'help': 0.39; 'skip:s 30': 0.39; 'to:addr:python.org': 0.39; 'could': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; 'learn': 0.60; 'best': 0.60; 'our': 0.63; 'connect': 0.64; 'world': 0.65; 'subject:. ': 0.66; 'show': 0.67; 'russian': 0.77; 'displayed.': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=ljGVJgDD9wlJdPr/klm89s7+uDF3PNnZTEX1jA60mwA=; b=nMWnit+SdFuD4uzZwraDX8AvE3B5U8wXIMLXWn0NCJzQUVD71Kf/bwWLh+9zL8c3ES AqKHRrb9Subrbs8BWw1mhidsMv54WgFUYwp099RVj0ErbQ+Q4vfPCyf96JpcBDeYYldj IKAdJdH7mfYaS14sP+kzvCGX2/R2HSKjZ0NKg=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=b7XF6MoBZqC+kWl2yXqL1ZRORj+C7VFfqHVKnxkOrqpxC8uEwwuqpREgls0sVR9ySS GiIA4DLUE8e5Cs+d/FWdNFnw2yFl+tV4hHGCPraft0/5C8VTnmPn9U/1hAAkpGQuFM1Y w/ewtWHhZzqIEHIucujJvytiA98C4GSYsXI4w=
MIME-Version 1.0
Date Sat, 7 May 2011 13:02:26 +1100
Subject PyGTK, Glade/libglade. What am I doing wrong?
From Даниил Рыжков <daniil.re@gmail.com>
To python-list@python.org
Content-Type multipart/mixed; boundary=000e0cd47ed67c66ac04a2a5ff21
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1280.1304733749.9059.python-list@python.org> (permalink)
Lines 53
NNTP-Posting-Host 82.94.164.166
X-Trace 1304733749 news.xs4all.nl 41113 [::ffff:82.94.164.166]:36109
X-Complaints-To abuse@xs4all.nl
Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:4880

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Sorry for my English (I could not find help in the Russian community)
I'm trying to learn PyGTK and Glade. I made test window in Glade and
saved it as "test.glade" (attached). Then I wrote script
"test.py"(attached, http://pastebin.com/waKytam3). I tried to run it.
While the script was executed, console did not show anything and
window wasn't displayed. When I pressed CTRL+С console displayed
trackback:
---
CTraceback (most recent call last):
  File "test.py", line 32, in <module>
    gtk.main()
KeyboardInterrupt
---
So what am I doing wrong?

-- 
Best wishes,
Daniil

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


Thread

PyGTK, Glade/libglade. What am I doing wrong? Даниил Рыжков <daniil.re@gmail.com> - 2011-05-07 13:02 +1100

csiph-web