How to run GTK.Gtk main / GtkWindow run
"Garreau\, Alexandre" <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.gnu.general |
|---|---|
| Message-ID | <[email protected]> |
On 2018-10-23 at 11:32, Garreau, Alexandre wrote: > In the end I managed to open a windows this way: > > (GTK.GtkMessageDialog new: nil flags: 0 type: 3 buttons: 0 message: 'This is a test.') run Now it works by using “present” instead of “run” (I found it out by trying out all unary messages) and then doing “GTK.Gtk main”. Is that the supposed way to do? If so is there a way to run main parallely so I can keep creating and destroying windows interactively at the repl while seeing whatever I’m doing? or is there a better way to do so? _______________________________________________ help-smalltalk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-smalltalk
gtk.st
(text/smalltalk, 161 B)
(GTK.GtkMessageDialog new: nil flags: 0 type: (GTK.Gtk gtkMessageQuestion) buttons: (GTK.Gtk gtkButtonsYesNo) message: 'This is a test.') present. GTK.Gtk main.