Thursday, February 22, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1501  / 11 Months ago, wed, april 26, 2023, 6:02:38

i want to get the location of the folder that is selected by a filechooserbutton in pygtk... how can i do this?



i connect the current folder changed signal from filechooser but the signal is emitted twice so i get the name of the folder twice...



i don't know what signal to connect... can i do something with properties?
any idea will be usefull... :)


More From » application-development

 Answers
5

A gtk.FileChooserButton implements the gtk.FileChooser interface. This means you can just use those methods on your button. get_current_folder() is probably the one you need.


[#37017] Wednesday, April 26, 2023, 11 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nalystcul

Total Points: 390
Total Questions: 106
Total Answers: 115

Location: Tokelau
Member since Sun, May 7, 2023
10 Months ago
nalystcul questions
Sun, May 1, 22, 17:05, 2 Years ago
Mon, Sep 6, 21, 08:12, 3 Years ago
Fri, Mar 18, 22, 20:06, 2 Years ago
;