Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Gtk;
- //namespace GtkForms{
- public class GtkForms : GLib.Object
- {
- // public Window Window(){var window1 = new Window();return window1;}
- public class Windows
- {
- public void Show(int x , int y)
- {
- var window = new Window();
- window.title = "إلبس :3";
- window.border_width = 10;
- window.window_position = WindowPosition.CENTER;
- window.set_default_size ( x, y);
- window.destroy.connect (Gtk.main_quit);
- var button = new Button ();
- button.Show(ref window);
- window.show_all ();
- }
- }
- public class Buttons
- {
- public Button Show(ref Window _win)
- {
- var button = new Button();
- _win.add(button);
- return button;
- }
- }
- }
- //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement