本文整理汇总了Python中Tkinter.Radiobutton.configure方法的典型用法代码示例。如果您正苦于以下问题:Python Radiobutton.configure方法的具体用法?Python Radiobutton.configure怎么用?Python Radiobutton.configure使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tkinter.Radiobutton
的用法示例。
在下文中一共展示了Radiobutton.configure方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from Tkinter import Radiobutton [as 别名]
# 或者: from Tkinter.Radiobutton import configure [as 别名]
class Tool_Path_Generator:
def __init__(self, top=None):
'''This class configures and populates the toplevel window.
top is the toplevel containing window.'''
_bgcolor = '#e6e6e6' # X11 color: 'gray85'
_fgcolor = '#000000' # X11 color: 'black'
font11 = "-size 15 -weight normal -slant roman " \
"-underline 0 -overstrike 0"
self.axial_length = DoubleVar()
self.printbed_diameter = DoubleVar()
self.final_diameter = DoubleVar()
self.filament_width_og = DoubleVar()
self.helix_angle = DoubleVar()
self.smear_factor = DoubleVar()
self.flow_rate = DoubleVar()
self.uv_offset = DoubleVar()
self.use_strong_pattern = BooleanVar()
self.axial_length.set(200.0)
self.printbed_diameter.set(10.0)
self.final_diameter.set(15.0)
self.filament_width_og.set(0.41)
self.helix_angle.set(45.0)
self.smear_factor.set(100.0)
self.flow_rate.set(0.0015)
self.uv_offset.set(32.5)
self.use_strong_pattern.set(True)
top.geometry("700x550")
top.title("SkelePrint Tool Path Generator")
top.configure(background="#e6e6e6")
top.configure(highlightbackground="#e6e6e6")
top.configure(highlightcolor="black")
self.Label7 = Label(top)
self.Label7.grid(row=0, column=0, sticky=W)
self.Label7.configure(background="#e6e6e6")
self.Label7.configure(font=font11)
self.Label7.configure(foreground="#000000")
self.Label7.configure(text='''SkelePrint Tool Path Generator''')
self.Labelframe1 = LabelFrame(top)
self.Labelframe1.grid(row=1, column=0, sticky=N+S)
self.Labelframe1.configure(relief=GROOVE)
self.Labelframe1.configure(foreground="black")
self.Labelframe1.configure(text='''Dimensions''')
self.Labelframe1.configure(background="#e6e6e6")
self.Labelframe1.configure(highlightbackground="#e6e6e6")
self.Labelframe1.configure(highlightcolor="black")
self.axial_length_entry = Entry(self.Labelframe1)
self.axial_length_entry.grid(row=0, column=1)
self.axial_length_entry.configure(background="white")
self.axial_length_entry.configure(font="TkFixedFont")
self.axial_length_entry.configure(foreground="#000000")
self.axial_length_entry.configure(highlightbackground="#e6e6e6")
self.axial_length_entry.configure(highlightcolor="black")
self.axial_length_entry.configure(insertbackground="black")
self.axial_length_entry.configure(selectbackground="#c4c4c4")
self.axial_length_entry.configure(selectforeground="black")
self.axial_length_entry.configure(textvariable=self.axial_length)
self.Label1 = Label(self.Labelframe1)
self.Label1.grid(row=0, column=0, sticky=E)
self.Label1.configure(activebackground="#e6e6e6")
self.Label1.configure(activeforeground="black")
self.Label1.configure(background="#e6e6e6")
self.Label1.configure(foreground="#000000")
self.Label1.configure(highlightbackground="#e6e6e6")
self.Label1.configure(highlightcolor="black")
self.Label1.configure(text='''Axial Length''')
self.Label2 = Label(self.Labelframe1)
self.Label2.grid(row=0, column=2, sticky=W)
self.Label2.configure(activebackground="#e6e6e6")
self.Label2.configure(activeforeground="black")
self.Label2.configure(background="#e6e6e6")
self.Label2.configure(disabledforeground="#e6e6e6")
self.Label2.configure(foreground="#000000")
self.Label2.configure(highlightbackground="#e6e6e6")
self.Label2.configure(highlightcolor="black")
self.Label2.configure(text='''mm''')
self.Label3 = Label(self.Labelframe1)
self.Label3.grid(row=1, column=0, sticky=E)
self.Label3.configure(activebackground="#e6e6e6")
self.Label3.configure(activeforeground="black")
self.Label3.configure(background="#e6e6e6")
self.Label3.configure(foreground="#000000")
self.Label3.configure(highlightbackground="#e6e6e6")
self.Label3.configure(highlightcolor="black")
self.Label3.configure(text='''Printbed Diameter''')
self.Entry2 = Entry(self.Labelframe1)
self.Entry2.grid(row=1, column=1)
self.Entry2.configure(background="white")
self.Entry2.configure(font="TkFixedFont")
self.Entry2.configure(foreground="#000000")
self.Entry2.configure(highlightbackground="#e6e6e6")
#.........这里部分代码省略.........