Create the top level window

tic_window(
  ...,
  title = "{tickle}",
  width = NULL,
  height = NULL,
  idle_func = NULL,
  idle_fps = 30,
  bind = NULL,
  pack = NULL,
  pack_def = NULL
)

Arguments

...

Other arguments are parsed as follows:

named arguments

Further options to be used during the creation of this widget. See the tcl/tk documentation for all arguments possible for this widget.

unnamed arguments

Container widgets (e.g. tic_frame()) treat any unnamed arguments as child objects. Non-container widgets (e.g tic_button()) will raise an error if there are any unnamed widgets.

title

Window Title

width, height

width and height of window. If not given then UI will be automatically sized.

idle_func

callback function which will be run continually while this window is open.

idle_fps

the frame rate at which this idle functino should be called. Default: 30. Set to 'NA' for running as fast as possible.

bind

bind commands to particular events on this element. This may be a single result of bind_opts() or a list of them for multiple events.

pack

a named list of pack options for how to incorporate this element into its parent container. Default: NULL means to use the standard packing. See pack_opts() as a way of creating a valid list of pack options.

pack_def

Default packing options for children of this object. This can be overriden by setting pack explicitly on child elemnets you want to control packing for.

Value

the tcl/tk window handle

tcl/tk

See tcl/tk documentation for more information on this element https://www.tcl.tk/man/tcl8.6/TkCmd/toplevel.html

See also

Other widgets containers: tic_labelframe()