How to use tksheet - 3 common examples

To help you get started, we’ve selected a few tksheet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ragardner / tksheet / tests / test_tksheet.py View on Github external
def __init__(self):
        tk.Tk.__init__(self)
        self.grid_columnconfigure(0, weight = 1)
        self.grid_rowconfigure(0, weight = 1)
        self.frame = tk.Frame(self)
        self.frame.grid_columnconfigure(0, weight = 1)
        self.frame.grid_rowconfigure(0, weight = 1)
        self.sheet = Sheet(self.frame,
                           page_up_down_select_row = True,
                           #empty_vertical = 0,
                           column_width = 120,
                           startup_select = (0,1,"rows"),
                           #row_height = "4",
                           #default_row_index = "numbers",
                           #default_header = "both",
                           #empty_horizontal = 0,
                           #show_vertical_grid = False,
                           #show_horizontal_grid = False,
                           #auto_resize_default_row_index = False,
                           #header_height = "3",
                           #row_index_width = 100,
                           #align = "center",
                           #header_align = "w",
                            #row_index_align = "w",
github ragardner / tksheet / tksheet / _tksheet_other_classes.py View on Github external
font,
                 state,
                 values = [],
                 set_value = None,
                 width = None,
                 height = None):
        tk.Frame.__init__(self,
                          parent)
        if width:
            self.config(width = width)
        if height:
            self.config(height = height)
        self.parent = parent
        self.grid_columnconfigure(0, weight = 1)
        self.grid_rowconfigure(0, weight = 1)
        self.dropdown = TableDropdown_(self,
                                       font,
                                       state,
                                       values = values,
                                       set_value = set_value)
        self.dropdown.grid(row = 0,
                           column = 0,
                           sticky = "nswe")
        self.grid_propagate(False)
        self.dropdown.focus_set()
github ragardner / tksheet / tksheet / _tksheet_other_classes.py View on Github external
text = None,
                 state = "normal",
                 width = None,
                 height = None,
                 border_color = "black",
                 show_border = True):
        tk.Frame.__init__(self,
                          parent,
                          height = height,
                          width = width,
                          highlightbackground = border_color,
                          highlightcolor = border_color,
                          highlightthickness = 2 if show_border else 0,
                          bd = 0)
        self.parent = parent
        self.textedit = TextEditor_(self,
                                    font = font,
                                    text = text,
                                    state = state)
        self.textedit.grid(row = 0,
                           column = 0,
                           sticky = "nswe")
        self.grid_columnconfigure(0, weight = 1)
        self.grid_rowconfigure(0, weight = 1)
        self.grid_propagate(False)
        self.textedit.focus_set()

tksheet

Tkinter table / sheet widget

MIT
Latest version published 22 hours ago

Package Health Score

70 / 100
Full package analysis

Similar packages