tkinter - Module Object has no Attribute Listbox - Python 3 -


i trying create scrollbar on buttonclick. below code:

            username = stringvar()              self.uentry1=ttk.entry(self.frame1,textvariable=username)             self.uentry1.pack()             self.ubutton=ttk.button(self.frame1,text="name!",command=self.get_user_info)             self.ubutton.pack()      def get_user_info(self):              self.uscrollbar = ttk.scrollbar(self.frame1)             self.uscrollbar.pack(fill='both',expand=1)              self.ulist = ttk.listbox(self.page5,yscrollcommand=self.uscrollbar.set)             self.ulist.pack(side=left,fill='both')             self.uscrollbar.config(command=ulist.yview)              self.ubutton1 = ttk.button(self.frame1,text = "pid's",width = 10)             self.ubutton1.grid() 

this throws error module object has no attribute listbox. please point out going wrong.(the above code incomplete need clear go further)

just error telling you, ttk module has no attribute named listbox. listbox part of tkinter (or tkinter) package.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

jquery - ReferenceError: CKEDITOR is not defined -

android - Go back to previous fragment -