lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


So an exanple code is :

local lgi = require 'lgi'
local Gtk = lgi.Gtk

local sticn = Gtk.StatusIcon {
    stock = Gtk.STOCK_YES,
    tooltip_text = 'Hello guys !',
    visible = true,
    _on_button_press_event_ = function () print("Click !") end,    -- For every buttons
    _on_button_release_event_ = function () print("Released") end, -- Idem
    _on_activate_ = function () print("Activated") end            -- Idem for left one
}

Gtk.main()

Hoping it can help someone ...

Bye

Laurent