Package winman implements a basic yet powerful window manager that can be used with tview (github.com/rivo/tview). It supports floating windows that can be dragged, resized and maximized. Windows can have buttons on the title bar, for example to close them, help commands or maximize / minimize. Windows can also be modal, meaning that other windows don't receive input while a modal window is on top. You can control whether the user can drag or resize windows around the screen. Any tview.Primitive can be added to a window.
Package winman implements a basic yet powerful window manager that can be used with tview (github.com/rivo/tview). It supports floating windows that can be dragged, resized and maximized. Windows can have buttons on the title bar, for example to close them, help commands or maximize / minimize. Windows can also be modal, meaning that other windows don't receive input while a modal window is on top. You can control whether the user can drag or resize windows around the screen. Any tview.Primitive can be added to a window.
Package winman implements a basic yet powerful window manager that can be used with tview (github.com/rivo/tview). It supports floating windows that can be dragged, resized and maximized. Windows can have buttons on the title bar, for example to close them, help commands or maximize / minimize. Windows can also be modal, meaning that other windows don't receive input while a modal window is on top. You can control whether the user can drag or resize windows around the screen. Any tview.Primitive can be added to a window.
Package tk is a CGo-free cross-platform GUI toolkit. The package is a light wrapper around the transpiled-to-Go C Tk library. This package is in pre-alpha phase. API not complete nor stable. These OS/arch combinations are supported. These targets are intended to eventually become supported if enough free time available. All types and methods exported by this package are safe for concurrent use by multiple goroutines. To install the tk package issue: To link the transpiled library issue: This documenattion is available online at: Many parts of the Go API documentation are copied and/or modified from the online Tcl/Tk documentation site at Please see the LICENSE-TK-DOCS file for details. Build status is available online at: An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. Bitmaps are specified by a name. FileName must be the name of a file containing a bitmap description in the standard X11 format. Name must be the name of a bitmap defined previously with a call to (*Application).Bitmap("?myName? ?options?"). The following names are pre-defined by Tk: The international “don't” symbol: a circle with a diagonal line across it. 75% gray: a checkerboard pattern where three out of four bits are on. 50% gray: a checkerboard pattern where every other bit is on. 25% gray: a checkerboard pattern where one out of every four bits is on. 12.5% gray: a pattern where one-eighth of the bits are on, consisting of every fourth pixel in every other row. An hourglass symbol. A large letter “i”. The silhouette of a human head, with a question mark in it. A large question-mark. A large exclamation point. In addition, the following pre-defined names are available only on the Macintosh platform: A generic document. Document stationery. The edition symbol. Generic application icon. A desk accessory. Generic folder icon. A locked folder. A trash can. A floppy disk. A floppy disk with chip. A cd disk icon. A folder with prefs symbol. A database document icon. A stop sign. A face with balloon words. A triangle with an exclamation point. Colors are specified by a symbolic name or an RGB-encoded value. In the later case the form is one of "#RGB", "#RRGGBB" or "#RRRRGGGGBBBB", where R, G and B stand for the hexadecimal digits of the 4, 8 or 16 bit color channel value. Tk recognizes many symbolic color names (e.g., red) when specifying colors. The symbolic names recognized by Tk and their 8-bit-per-channel RGB values are: On macOS, the following additional system colors are available. This first group contains all of the HIBrush colors available in the HIToolbox library. Note that on macOS 10.14 (Mojave) and later these colors are unlikely to match the color actually used for the purpose suggested by the color name. Tk supports all of the NSColors in the macOS System ColorList. The convention for naming these colors is that the Tk name is generated by capitalizing the macOS name and adding the prefix "system". On OSX 10.14 (Mojave) and later many of these "semantic" colors will appear differently depending on whether the NSWindow in which they are used has the Aqua or DarkAqua appearance. The System ColorList differs between releases of macOS and some colors, such as systemLinkColor and systemControlAccentColor, are simulated on older systems which did not provide them. All of the colors below are available on all supported macOS releases, but newer systems will support additional colors. The numbered systemWindowBackgroundColors below are used in the Tnotebook and Tlabelframe widgets to provide a contrasting background. Each numbered color constrasts with its predecessor. On Windows, the following additional system colors are available (note that the actual color values depend on the currently active OS theme): The Cursor widget option allows a Tk programmer to change the mouse cursor for a particular widget. The cursor names recognized by Tk on all platforms are: The none cursor can be specified to eliminate the cursor. On Windows systems, the following cursors are mapped to native cursors: And the following additional cursors are available: On Mac OS X systems, the following cursors are mapped to native cursors: And the following additional native cursors are available: Some methods take as argument a specification of distance on the screen. The argument is a string standing for an integer or floating point number followed by one of the following characters that indicates units: