User Interface
User interface utility.
Quick Facts
| Property | Value |
|---|---|
| Class | UserInterface |
| Module | cenpylib.UserInterface |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 8 |
| Inherits from | Tk |
Inheritance
Quick Start
# Boilerplate Example
obj = UserInterface(title, width, height, resizeWidth, resizeHeight)Method Index
| Method | Returns | Summary |
|---|---|---|
__init__ | โ | Construct a new โTkโ object. |
AddFrame | โ | Add a Frame to the given window. |
AddButton | โ | Add a Button to the given window with the specified parameters. |
AddDropDownList | โ | Add a drop-down list to the given window with the specified parameters. |
AddLabel | โ | Add a Label to the given window with the specified parameters. |
AddTextBox | โ | Add a simple TextBox entry to the given window with the specified parameters. |
AddMultilineTextBox | โ | Add a multiline TextBox entry to the given window with the specified parameters. |
AddScrollbar | โ | Add a Scrollbar to the given window witht the specified parameters. |
Lifecycle
__init__
def __init__(title, width, height, resizeWidth=False, resizeHeight=False)Construct a new โTkโ object.
Create an empty UI window with the given title and parameters in E2 style.
Parameters:
| Name | Type | Description |
|---|---|---|
title | โ | โ |
width | โ | โ |
height | โ | โ |
resizeWidth | โ | โ (default: False) |
resizeHeight | โ | โ (default: False) |
Mutation Methods
AddFrame
def AddFrame(window)Add a Frame to the given window.
Parameters:
| Name | Type | Description |
|---|---|---|
window | โ | โ |
AddButton
def AddButton(window, text, width, height, function)Add a Button to the given window with the specified parameters.
Parameters:
| Name | Type | Description |
|---|---|---|
window | โ | โ |
text | โ | โ |
width | โ | โ |
height | โ | โ |
function | โ | โ |
AddDropDownList
def AddDropDownList(window, variable, default, listValues, width, height, function)Add a drop-down list to the given window with the specified parameters.
Parameters:
| Name | Type | Description |
|---|---|---|
window | โ | โ |
variable | โ | โ |
default | โ | โ |
listValues | โ | โ |
width | โ | โ |
height | โ | โ |
function | โ | โ |
AddLabel
def AddLabel(window, text, width, height, function)Add a Label to the given window with the specified parameters.
Parameters:
| Name | Type | Description |
|---|---|---|
window | โ | โ |
text | โ | โ |
width | โ | โ |
height | โ | โ |
function | โ | โ |
AddTextBox
def AddTextBox(window, variable, readonly=False)Add a simple TextBox entry to the given window with the specified parameters.
Parameters:
| Name | Type | Description |
|---|---|---|
window | โ | โ |
variable | โ | โ |
readonly | โ | โ (default: False) |
AddMultilineTextBox
def AddMultilineTextBox(window, text, width, height, readonly=False)Add a multiline TextBox entry to the given window with the specified parameters.
Parameters:
| Name | Type | Description |
|---|---|---|
window | โ | โ |
text | โ | โ |
width | โ | โ |
height | โ | โ |
readonly | โ | โ (default: False) |
AddScrollbar
def AddScrollbar(window, orient, function)Add a Scrollbar to the given window witht the specified parameters.
Parameters:
| Name | Type | Description |
|---|---|---|
window | โ | โ |
orient | โ | โ |
function | โ | โ |
Version Notes
This class is documented as of release R2026.1.1.
Was this page helpful?