Category : combobox

The code is correct (and very interesting indeed – From stackoverlflow, because facilitate working comboboxes in classes!). The code is a little long, but just to create the structure to make combobox work in this parent, controler, container model. On the other hand,comoboboxes are "burning my brains out". The hard part: I can reset the ..

Read more

I have created a window with Combobx and Button. I wanted that a message box opens when I click the button. But the Messagebox is unresponsive when I click into the field in the combobox. from tkinter import * from tkinter import ttk from tkinter import messagebox def fun1(): messagebox.showinfo(”,’success’) def fun2(): win2=Toplevel(win) win2.title(‘tianjiatix’) Label(win2,text=’label’).grid(row=0,column=0) ..

Read more

How do you return the value selected in this combobox? combobox_label = tk.Label(top_level, text="How many marks?", font=(‘Helvetica’, 12, ‘bold’)) combobox= ttk.Combobox(top_level) combobox[‘values’] = [int(i) for i in range(0, marks+1)] combobox_label.pack() combobox.pack() Source: Python..

Read more

When I use comboboxes the script prints ok. But when I use button "get list of choices" I receive the error message "get_combo_choice() missing 2 required positional arguments: ‘event’ and ‘cmb’". I can’t figure it out. Thanks for any hint. import tkinter as tk from tkinter import ttk from tkinter import Tk from tkinter import ..

Read more