An example showing all the options for the Nictk.Misc.get_winfo() method (inherited by windows and interior widgets).
24winfo_options = [
"atom",
"atomname",
"cells",
"children",
"class",
"colormapfull",
"containing",
25 "depth",
"exists",
"fpixels",
"geometry",
"height",
"id",
"interps",
"ismapped",
26 "manager",
"name",
"parent",
"pathname",
"pixels",
"pointerx",
"pointerxy",
27 "pointery",
"reqheight",
"reqwidth",
"rgb",
"rootx",
"rooty",
"screen",
"screencells",
28 "screendepth",
"screenheight",
"screenmmheight",
"screenmmwidth",
"screenvisual",
29 "screenwidth",
"server",
"toplevel",
"viewable",
"visual",
"visualid",
"visualsavailable",
30 "vrootheight",
"vrootwidth",
"vrootx",
"vrooty",
"width",
"x",
"y"]
32winMain = Ntk.Main(100, 100, 800, 600, title=
"winfo demo")
33labTest = Ntk.Label(winMain, 0, 0,
"fill", 50, pad=(30, 10, 30, 10), content=
"labTest")
34txtTest = Ntk.Text(winMain, 0,
"pack",
"fill",
"fill", pad=(30, 5, 30, 10))
36for opt
in winfo_options:
38 output = labTest.get_winfo(opt)
40 output =
"NEEDS PARAM "
41 desc =
"{:40}{:>30}".format(
'labTest.get_winfo("' + opt +
'")', str(output))
42 txtTest.append_text(desc +
"\n")