user interface - Python tkinter: Tab page with scroll bar -


i have tab page text box on , want add scroll bar it, isn't working me (it covering tab name).

here code:

*look below* 

any appreciated!

edit:

i being stupid, when switch between tabs text doesn't change (if type 'a' , switch between tabs show on of them), , didn't happen before until edited code. here code; let me know if need more of it:

tabs = {} tab_bar = {}  ... def donew(self):   # create new tab file name , select   self.nb.select(self.createtab())  # create new tab def createtab(self, name='untitled.asm'):    tab_num = len(tabs)   # current tab number   tab_bar_num = len(tab_bar)  # it's frame    tab_bar[tab_bar_num] = frame(self.nb)   # create new frame    scrollbar = scrollbar(self.root)   scrollbar.pack(side=right, fill=y)    tabs[tab_num] = text(self.root, yscrollcommand=scrollbar.set)   self.nb.add(tab_bar[tab_bar_num], text=name)   # add tab     tabs[tab_num].pack(side=left, fill=both)   scrollbar.config(command=tabs[tab_num].yview)    return tab_num 

thanks again.

the tab should frame child of notebook. then, text widget , scrollbar should in frame.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -