apt-get install python-tk
on your piece of equipment(s).(Functions on Debian-derived distributions like for Ubuntu; refer to your deal supervisor and package deal list on additional distributions.)python set up.py build
andpython set up.py install
in your python set up directory site - and it should function. It proved helpful for me - and I can now transfer Tkinter etc to my coronary heart's content material - yipidy-yay. An whole afternoon spent on this - hope this take note will save others from the discomfort.Tkinter
nottkinter
import tkinter
andtransfer Tkinter
.Python 3
then you must install as follows:Python 2
(python-tk
) is definitely different fromPython 3
'beds (python3-tk
).sudo apt-get install python3-tk
Sr.No. | Agent amp; Description |
---|---|
1 | Button The Key widget can be utilized to display buttons in your software. |
2 | Canvas The Canvas widget is utilized to attract shapes, such as lines, ovals, polygons ánd rectangles, in yóur software. |
3 | Checkbutton The Checkbutton widget is utilized to display a number of choices as checkboxes. The user can select multiple choices at a period. |
4 | Entrance The Admittance widget is definitely used to screen a single-line text message field for acknowledging values from a consumer. |
5 | Framework The Body widget is utilized as a box widget to organize other widgéts. |
6 | Label The Brand widget is definitely used to supply a single-Iine caption for other widgets. It can also contain images. |
7 | Listbox The Listbox golf widget is utilized to provide a checklist of options to a consumer. |
8 | Menubutton The Menubutton golf widget is utilized to display menus in your software. |
9 | Menus The Menu widget is used to supply various commands to a consumer. These instructions are included inside Ménubutton. |
10 | Message The Information widget is usually used to display multiline text fields for taking values from a user. |
11 | Radiobutton The Radiobutton golf widget is used to screen a quantity of options as radio control keys. The user can select just one option at a time. |
12 | Range The Level widget is utilized to supply a slider golf widget. |
13 | Scrollbar The Scrollbar golf widget is used to add scrolling capability to numerous widgets, like as checklist containers. |
14 | Text The Text widget is definitely utilized to screen text in multiple ranges. |
15 | Toplevel The Toplevel widget is utilized to offer a separate window box. |
16 | Spinbox The Spinbox widget is usually a variant of the standard Tkinter Entry widget, which can end up being utilized to choose from a fixed quantity of ideals. |
17 | PanedWindow A PanedWindow is a container golf widget that may include any amount of panes, organized horizontally or verticaIly. |
18 | LabelFrame A labelframe will be a basic container widget. Its primary purpose is usually to behave as a spacer or container for complex window styles. |
19 | tkMessageBox This module is used to display message containers in your applications. |