你好,我需要创建一个窗口,有5个不同的下拉菜单,我需要保存5个给出的答案。我设法用5种不同的下拉菜单创建了窗口。但是,当我运行代码时,只保存了最后的答案。我如何检索所有的5个选项?谢谢import tkinter# Create the default window # Variable to keep track of the option selec
Windows7:下面的代码演示了当根窗口被配置为最顶层窗口("always on top")时,组合框下拉菜单如何显示在根窗口后面。如果您注释掉行“root.attributes( '-topmost',1)”,则组合框下拉菜单将出现在根窗口中(正如预期的那样)。# sample code that illustrates problem described above
import ttk
root =tkinter