GUI component interaction: Difference between revisions

m
Line 2,191:
 
=={{header|Phix}}==
{{libheader|pGUI}}
<lang Phix>include pGUI.e
 
Line 2,217 ⟶ 2,218:
end function
 
IupOpen("../pGUI/")
txt = IupText(Icallback("action_cb"),"EXPAND=YES")
increment = IupButton("increment",Icallback("increment_cb"))
random = IupButton("random",Icallback("random_cb"))
hbx = IupHbox({increment,random},"MARGIN=0x10, GAP=20")
vbx = IupVbox({txt,hbx},"MARGIN=40x20")
dlg = IupDialog(vbx)
IupSetCallback(dlg, "K_ANY", Icallback("esc_close"))
IupShow(dlg)
IupMainLoop()
IupClose()</lang>
 
=={{header|Python}}==
7,820

edits