[Gtk-sharp-list] How to create multiple Gtk.Windows from console screen
iltelko
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:
class MainClass
{
public static GtkTuloste gtktuloste;
public static tietokanta tk;
public static void Main (string[] args)
{
Gtk.Application.Init();
Console.WriteLine ("Hello World!");
tk = new tietokanta();
tk.read();
tuloste();
new Thread(tk.cmdloop).Start(); // console thread
Thread.Sleep(1000);
Gtk.Application.Run();
}
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
mailing list