Module tkinter_qu.gui_components

This module holds all the GUI components of the application. Most of the GUI components just have one some additional feature on top of the base tkinter component

Expand source code
"""This module holds all the GUI components of the application. Most of the GUI components just have one some additional
feature on top of the base tkinter component"""

def get_float_value(text):
    """
        Returns:
            float: the value of text as a float"""

    return float(text)


def get_int_value(text):
    """
        Returns:
            int: the value of text as an integer"""

    return int(text)


def get_csv_text(text: str, value_to_object=lambda x: x):
    """
        Returns:
            list[str]: each value of the text. The value in question is value_to_object(csv_value)"""

    values = text.split(", ")
    return [value_to_object(x) for x in values]

Sub-modules

tkinter_qu.gui_components.button
tkinter_qu.gui_components.component
tkinter_qu.gui_components.dimensions
tkinter_qu.gui_components.drop_down_menu
tkinter_qu.gui_components.frame
tkinter_qu.gui_components.grid
tkinter_qu.gui_components.grid_items
tkinter_qu.gui_components.input_field
tkinter_qu.gui_components.pages
tkinter_qu.gui_components.titled_input_field
tkinter_qu.gui_components.vim_grid

Functions

def get_csv_text(text: str, value_to_object=<function <lambda>>)

Returns

list[str]
each value of the text. The value in question is value_to_object(csv_value)
Expand source code
def get_csv_text(text: str, value_to_object=lambda x: x):
    """
        Returns:
            list[str]: each value of the text. The value in question is value_to_object(csv_value)"""

    values = text.split(", ")
    return [value_to_object(x) for x in values]
def get_float_value(text)

Returns

float
the value of text as a float
Expand source code
def get_float_value(text):
    """
        Returns:
            float: the value of text as a float"""

    return float(text)
def get_int_value(text)

Returns

int
the value of text as an integer
Expand source code
def get_int_value(text):
    """
        Returns:
            int: the value of text as an integer"""

    return int(text)