def _make_widgets(self):
     tree_container = ScrolledTree(self)
     tree_container.pack(expand='yes', fill='both')
     self.__tree = tree = tree_container.tree
     tree['columns'] = ['value', 'action']
     tree.heading('value', text='Value')
     tree.heading('action', text='Action')
Example #2
0
 def _make_widgets(self):
     tree_container = ScrolledTree(self)
     tree_container.pack(expand='yes', fill='both')
     self.__tree = tree = tree_container.tree
     tree['columns'] = ['app', 'id']
     tree.heading('app', text='App')
     tree.heading('id', text='ID')
     self._tree = tree
Example #3
0
 def _make_widgets(self):
     tree_container = ScrolledTree(self)
     tree_container.pack(expand='yes', fill='both')
     self.__tree = tree = tree_container.tree
     tree['columns'] = ['path', 'size']
     tree.heading('path', text='Path')
     tree.heading('size', text='Size')
     tree_container.on_item_double_click.add_function(
         self._on_item_doubleclick)
Example #4
0
def show(dataframe):
    win = Toplevel()
    win.title("WaveSyn-DataFrameDisplay")
    query_entry = LabeledEntry(win)
    query_entry.pack(fill="x", expand="no")
    query_entry.label_text = "Query:"

    def query_func(event):
        if event.keysym == "Return":
            new_df = dataframe.query(query_entry.entry_text)
            show(new_df)

    query_entry.entry.bind("<Key>", query_func)
    st = ScrolledTree(win)
    st.pack(fill="both", expand="yes")
    st.load_dataframe(dataframe)