ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vitaly Ostanin <vyt@vzljot.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: [devel] pygtk2 - parent of widget
Date: Tue, 17 Feb 2004 16:33:19 +0300
Message-ID: <4032181F.8010407@vzljot.ru> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 633 bytes --]

Hello, All!

Расскажите, pls, как можно получить родителя виджета в pygtk2 ?

Либо я пошёл совсем не тем путём, либо pygtk2tutorial писал очень 
скрытный человек :) Там есть пример класса с gtk.FileSelection с 
работающей обработкой кнопки "Ok".

В аттаче тестовая программа, где я пытался по нажатию "Ok" 
получать имя файла, но не в классе. Проблема в том, что
filesel.ok_button.connect("clicked", gtk_file_open_ok)
передаёт в качестве виджета кнопку, а не диалог, и я не знаю, как 
с этим бороться.

Если кто заинтересуется, диалог открывается через меню File/Open.

-- 
Regards, Vyt
mailto:  vyt@vzljot.ru
JID:     vyt@vzljot.ru

[-- Attachment #1.2: pix.tar.bz2 --]
[-- Type: application/x-bzip, Size: 1592 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

             reply	other threads:[~2004-02-17 13:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-17 13:33 Vitaly Ostanin [this message]
2004-02-17 13:41 ` Sergey Pinaev
2004-02-17 14:30   ` [devel] " Vitaly Ostanin
2004-02-17 15:23       ` Vitaly Ostanin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4032181F.8010407@vzljot.ru \
    --to=vyt@vzljot.ru \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git