Re: I can't get my filename returned
| From: | nathan at the-ring dot homelinux dot net | Date: | Tue, 20 Jul 2004 00:01:38 +0000 |
| Subject: | Re: I can't get my filename returned | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4798@lists.php.net to get a copy of this message | ||
you have to use gtk::main() and gtk::main_quit() inside your class methods to achieve
what you're trying to do.
this will run another gtk loop and will block your script until the main_quit() was called.
check the method show() and destroy() of the class msgbox at
http://wiki.gtk.php.net/index.php?page=msgbox
for a good example.
nathan
> Hello,
>
> I'm trying to make a simple texteditor , but now I'm kind of stuck at
> the following point
> I have my fileDialog that works , but I can't get the filename of it
> back to my basic window to be able to put the text of the opened file in
> the texteditor.
>
> I have my class FileDialog when you press the OK button of the
> fileselection you go to EndDialog where I copy $name =
> $this->FileDg->Get_Filename() ;
> when I do echo $name ; I see the filename so everything is oke
> than I put the name into a member of the class $this->bestand = $name;
> I did an echo of that var too and everything still oke
> but than when I try to access the var $this->bestand
> from my mainwindow class I get nothing but an empty string.
>