我想链接我的单选按钮与标题,像合并我的标题与单选按钮。这是我实现的代码:
but1 = Radiobutton(text = "Current",value = 0)
but1.place(x =400,y = 150)
but2 = Radiobutton(text = "Previous",value = 1)
but2.place(x =320,y = 150)
but3 = Radiobutton(text = "Current",value = 2)
but3.place(x =400,y = 260)
but4 = Radiobutton(text = "Previous",value = 3)
but4.place(x =320,y = 260)
the_window.geometry("510x430")
label1 = Label(the_window,text = "Most-Discussed \n TV SHOW", font =
"Times 10 bold")
label1.place(x = 350,y = 110)
label2 = Label(the_window,text = "Most-Discussed \n TV SHOW", font =
"Times 10 bold")
label2.place(x = 350,y = 230)
这是实际结果:
这是预期结果:
我不知道你是否知道这个,但是这个小部件叫做^{} 。请参见下面的示例。你知道吗
另外,我已将您的几何管理器更改为
grid
相关问题 更多 >
编程相关推荐