Commit 7d78db6efcf6ab224959e6eb3a2d40571f31e8b3

Jeremy JEANNE 2024-12-19T13:54:16

window , vbox hbox button

diff --git a/kmsg/kmsg.kc3 b/kmsg/kmsg.kc3
index 4fe1e28..64750bb 100755
--- a/kmsg/kmsg.kc3
+++ b/kmsg/kmsg.kc3
@@ -22,6 +22,17 @@ defmodule Kmsg do
 
   def on_connect = fn (action, void) {
     puts("Kmsg.connect")
+    window = Gtk4.Window.new()
+    Gtk4.Window.set_title(window, "Kmsg: Connect")
+    vbox = Gtk4.Box.new(:vertical, 0)
+    hbox = Gtk4.Box.new(:horizontal, 0)
+    label = Gtk4.Label.new("Host")
+    button = Gtk4.Button.new_with_label("Ok")
+    Gtk4.Box.append(hbox, label)
+    Gtk4.Box.append(vbox, hbox)
+    Gtk4.Box.append(vbox, button)
+    Gtk4.Window.set_child(window, vbox)
+    Gtk4.Window.present(window)
   }
 
   def on_send = fn (action, window) {