[pygtk] On displaying a TreeView and selecting the right element...

Martin Gadbois martin.gadbois at colubris.com
Sat Mar 13 03:15:28 WST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michal Pasternak wrote:
|
| Use TreeSelection object. If your tree is really a flat list, set
| TreeSelection path to (n,) (n being number of the selected item)
|

I did. Look at the included example code.
select_path() does not give the expected results in dir_dialog(), but later in doit() it works...

What gives? Bug or feature?


- --
"Windows might take you from 0 to 60 faster, but to go to 100 you need Unix."
==============
Martin Gadbois
S/W Developper
Colubris Networks Inc.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAUgxP9Y3/iTTCEDkRAviMAJ0TqgNbD5KQPN+tFSn++NdUh7V6wwCfVV32
KvMMTTHsdkWY94U9gVq7Hjo=
=NQNy
-----END PGP SIGNATURE-----


More information about the pygtk mailing list