예제 #1
0
파일: main.py 프로젝트: shish/context
 def show_about():
     t = Toplevel(master)
     t.title("About")
     t.transient(master)
     t.resizable(False, False)
     Label(t, image=self.img_logo).grid(column=0, row=0, sticky=(E, W))
     Label(t, text="Context %s" % VERSION, anchor=CENTER).grid(column=0, row=1, sticky=(E, W))
     Label(t, text="(c) 2011-2014 Shish", anchor=CENTER).grid(column=0, row=2, sticky=(E, W))
     Button(t, text="Close", command=t.destroy).grid(column=0, row=3, sticky=(E,))
     win_center(t)
예제 #2
0
파일: main.py 프로젝트: shish/context
 def show_license():
     t = Toplevel(master)
     t.title("Context Licenses")
     t.transient(master)
     scroll = Scrollbar(t, orient=VERTICAL)
     tx = Text(
         t,
         wrap=WORD,
         yscrollcommand=scroll.set,
     )
     scroll['command'] = tx.yview
     scroll.pack(side=RIGHT, fill=Y, expand=1)
     tx.pack(fill=BOTH, expand=1)
     tx.insert("0.0", b64decode(data.LICENSE).replace("\r", ""))
     tx.configure(state="disabled")
     tx.focus_set()
     win_center(t)