[Gtk-sharp-list] How to create multiple Gtk.Windows from console screen
iltelko at gmail.com
Sun Sep 23 09:54:24 UTC 2012
I have defined public class GtkTuloste:Gtk.Window,
and I want to create multiple windows of that type.
I have console thread (new Thread(tk.cmdloop).Start();),
which creates these windows, as many as needed.
First window is created by tuloste()-method. It works fine.
But all the sub-sequent windows are not created, and I got error (something
about Bad Window).
Can anyone help me? Any reply is deeply appreciated.
Here is main-method of my program:
public static GtkTuloste gtktuloste;
public static tietokanta tk;
public static void Main (string args)
Console.WriteLine ("Hello World!");
tk = new tietokanta();
new Thread(tk.cmdloop).Start(); // console thread
public static void tuloste()
MainClass.gtktuloste = new GtkTuloste(tk.dt);
View this message in context: http://mono.1490590.n4.nabble.com/How-to-create-multiple-Gtk-Windows-from-console-screen-tp4656742.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list