本文整理汇总了Python中Analysis.infoOLD方法的典型用法代码示例。如果您正苦于以下问题:Python Analysis.infoOLD方法的具体用法?Python Analysis.infoOLD怎么用?Python Analysis.infoOLD使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Analysis
的用法示例。
在下文中一共展示了Analysis.infoOLD方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import Analysis [as 别名]
# 或者: from Analysis import infoOLD [as 别名]
def __init__(self, parent, controller):
tk.Frame.__init__(self, parent)
img = self.img = ImageTk.PhotoImage(Image.open('build_your_career.jpg'))
panel = Tkinter.Label(self,image=img)
panel.place(x="0",y="0")
scrollbar = tk.Scrollbar(self)
scrollbar.pack(side="right", fill="y")
result = Analysis.infoOLD()
text_field = "Quiz: Which Major Is Right For You?\nYour last result: "+result+"\nSource: http://getcollegecredit.com/blog/article/which_major_is_right_for_you\n"
f = open('quiz.txt','r')
text_field = text_field + str(f.read())
text = tk.Text(self)
text.insert("end",text_field)
text.pack()
text.config(state="disabled",yscrollcommand=scrollbar.set)
scrollbar.config(command=text.yview)
self.entryVariable = Tkinter.StringVar()
self.entry = Tkinter.Entry(self,textvariable=self.entryVariable, width = 50)
self.entry.bind("<Return>", self.OnPressEnter)
self.entryVariable.set(u"Ex: 1 D,2 C, ...")
self.entry.pack()
self.labelVariable = Tkinter.StringVar()
label = Tkinter.Label(self,textvariable=self.labelVariable,justify="left",wraplength=500,fg="yellow",bg="blue",width = 80,height=10)
self.labelVariable.set(u"Hello!")
label.pack()
button1 = tk.Button(self, text="Back to Home",
command=lambda: controller.show_frame(HomePage))
button1.pack()