This is a list of the available widgets in the library; all of them are subclasses of tkinter or ttk widgets. I however renamed some of them to get a better clarity.
In your app you must create a unique main window (i.e. a Main object), then you can create and destroy any number of Window objects (the Toplevel object in tkinter).
Object | Notes |
---|---|
class Nictk.Main | The main window of the app (derived from the tkinter Tk class) |
class Nictk.Window | A common window (derived from the tkinter Toplevel class). It can be a normal, modal or persistent window |
Frames are another type of container. They are initialized with no border and the same color of their parent, so they are invisible and you can use them for layout purposes (grouping children widgets horizontally or vertically). However, as they are derived from the tkinter LabelFrame widget, you can set a border and a label for them (this reduces the available space in the frame). In their constructors the pad parameter is present but is ignored (it is always fixed to 0 in all directions).
From version 2.2.0 I introduced scrollable frames, in which you can add internal widgets exceeding the frame height: if you do this a scrollbar appears automatically.
Object | Notes |
---|---|
class Nictk.HorFrame | A frame in which you can stack children widgets horizontally |
class Nictk.VerFrame | A frame in which you can stack children widgets vertically |
class Nictk.RowFrame | A frame which you can divide in rows vertically. Each row behaves like a HorFrame, allowing to stack children widgets horizontally. This allows to place widgets as in a matrix. |
class Nictk.VerScrollFrame | Similar to the VerFrame. You can stack widgets exceeding the height of the internal area, in this case a vertical scrollbar appears automatically. |
class Nictk.RowScrollFrame | Similar to the RowFrame. You can stack widgets exceeding the height of the internal area, in this case a vertical scrollbar appears automatically. |
These are the other widgets defined in Nictk.
Object | Notes |
---|---|
class Nictk.Button | Button widget |
class Nictk.Canvas | Canvas widget to display graphical elements like lines or text |
class Nictk.Checkbutton | Checkbutton widget which is either in on or off state |
class Nictk.Combobox | Combobox which allows the user to select a value from a menu. It is the equivalent (renamed) of the OptionMenu class in tkinter |
class Nictk.Entry | Entry widget which allows editing and displaying simple text |
class Nictk.Label | Label widget which can display text and bitmaps |
class Nictk.Listbox | Listbox widget which can display a list of strings, allowing simple and multiple selection |
class Nictk.Menu | Menu widget which allows displaying menu bars, pull-down menus and pop-up menus |
class Nictk.Radiobutton | Radiobutton widget which can be grouped, showing only one of several buttons in on state |
class Nictk.Scale | Scale widget which can display a cursor sliding on a numerical scale |
class Nictk.Scrollbar | Scrollbar widget |
class Nictk.Spinbox | Spinbox widget which allows selecting one of various options by mean of arrow keys or inserting a new one |
class Nictk.Text | Text widget which can edit and display formatted text |
class Nictk.Notebook | Notebook widget which manages a collection of windows and displays a single one at a time. It derives from the ttk.Notebook widget |