-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathabout.py
More file actions
32 lines (23 loc) · 951 Bytes
/
about.py
File metadata and controls
32 lines (23 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from dialog import dialog
from tkinter import Message,CENTER,Frame
class about(dialog):
def body(self,master):
msg = Message(master, text='Implementation of the game Shisen Sho\n' +
'By Carlos Arce\n' +
'@apolinux\n' +
'apolinux@gmail.com\n' +
'2015', justify=CENTER,width=300).grid()
def onClose(self):
self.window.pauseClock(False)
def buttonbox(self):
# add standard button box. override if you don't want the
# standard buttons
box = Frame(self)
"""w = Button(box, text="OK", width=10, command=self.ok, default=ACTIVE)
w.pack(side=LEFT, padx=5, pady=5)
w = Button(box, text="Cancel", width=10, command=self.cancel)
w.pack(side=LEFT, padx=5, pady=5)"""
self.bind("<Return>", self.ok)
self.bind("<Button-1>", self.ok)
self.bind("<Escape>", self.cancel)
box.pack()