![]() ![]() Tree.heading("three", text="Ampułki/Tabletki") Tree.heading("one", text="Numer seryjny leku") Ids.append(tree.insert("", "end", text=names)) The problem is, that nothing happens and pops an error about missing one argument when I type the searchable word. I also wanted to do the way that it doesn't matter to search box when the typed word starts with capital letter or lower letter or the whole word is. I tried to do saearchable Treeview the same like someone did in this post to my code: searching in treeview and highlight/select the row that contains the item that is searched. _style_index += 1 else : style_name = style style_map = if cell_background is not None : style_config = cell_background if cell_foreground is not None : style_config = cell_foreground if cell_font is None : font_name = s. List_Of_Columns ( self ) s = Style () if style is None : style_name = "Multicolumn_Listbox %s. _number_of_columns = len ( columns ) self. number_of_columns def _init_ ( self, master, columns, data = None, command = None, sort = True, select_mode = None, heading_anchor = CENTER, cell_anchor = W, style = None, height = None, padding = None, adjust_heading_to_content = False, stripped_rows = None, selection_background = None, selection_foreground = None, field_background = None, heading_font = None, heading_background = None, heading_foreground = None, cell_pady = 2, cell_background = None, cell_foreground = None, cell_font = None, headers = True ): self. delete_column ( index ) def _len_ ( self ): return self. update_column ( index, value ) def _delitem_ ( self, index ): self. get ( index ) def _setitem_ ( self, index, value ): return self. update_column ( index, data ) def _getitem_ ( self, index ): return self. delete_column ( index ) def update ( self, index, data ): self. _multicolumn_listbox, index ) def delete ( self, index ): self. get_column ( index ) def get ( self, index ): return Column ( self. _multicolumn_listbox = multicolumn_listbox def data ( self, index ): return self. number_of_rows class List_Of_Columns ( object ): def _init_ ( self, multicolumn_listbox ): self. delete_row ( index ) def _len_ ( self ): return self. update_row ( index, value ) def _delitem_ ( self, index ): self. set_selection ( indices ) def _getitem_ ( self, index ): return self. deselect_row ( index ) def set_selection ( self, indices ): self. ![]() select_row ( index ) def deselect ( self, index ): self. update_row ( index, data ) def select ( self, index ): self. delete_row ( index ) def update ( self, index, data ): self. insert_row ( data, index ) def delete ( self, index ): self. _multicolumn_listbox, index ) def insert ( self, data, index = None ): self. row_data ( index ) def get ( self, index ): return Row ( self. number_of_rows class Multicolumn_Listbox ( object ): _style_index = 0 class List_Of_Rows ( object ): def _init_ ( self, multicolumn_listbox ): self. data ()) def _len_ ( self ): return self. _index, data ) def _str_ ( self ): return str ( self. _index ) def update ( self, data ): self. _index = index def data ( self ): return self. number_of_columns class Column ( object ): def _init_ ( self, table, index ): self. ![]() _index ) def _str_ ( self ): return str ( self. _index, data ) def select ( self ): self. # Version: 2.3 # Author: Miguel Martinez Lopez # Uncomment the next line to see my email # print("Author's email: %s"%"61706c69636163696f6e616d656469646140676d61696c2e636f6d".decode("hex")) import platform try : from Tkinter import Frame, BOTH, N, E, S, W, CENTER, Entry, Canvas, Label from tkFont import Font, nametofont from ttk import Treeview, Scrollbar, Style except ImportError : from tkinter import Frame, BOTH, N, E, S, W, CENTER, Entry, Canvas, Label from tkinter.font import Font, nametofont from tkinter.ttk import Treeview, Scrollbar, Style # Python 3 compatibility try : basestring except NameError : basestring = str class Row ( object ): def _init_ ( self, table, index ): self. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |