[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] How to run GTK.Gtk main / GtkWindow run
From: |
Garreau\, Alexandre |
Subject: |
[Help-smalltalk] How to run GTK.Gtk main / GtkWindow run |
Date: |
Wed, 24 Oct 2018 01:10:00 +0200 |
User-agent: |
Gnus (5.13), GNU Emacs 25.1.1 (i686-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-09-15, modified by Debian |
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
(GTK.GtkMessageDialog new: nil flags: 0 type: (GTK.Gtk gtkMessageQuestion)
buttons: (GTK.Gtk gtkButtonsYesNo) message: 'This is a test.') present.
GTK.Gtk main.
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?