| 246 | |
| 247 | |
| 248 | def __init_help(self, title, width, height, autoflush): |
| 249 | master = tk.Toplevel(_root) |
| 250 | master.protocol("WM_DELETE_WINDOW", self.__close_help) |
| 251 | tk.Canvas.__init__(self, master, width=width, height=height) |
| 252 | self.master.title(title) |
| 253 | self.pack() |
| 254 | master.resizable(0,0) |
| 255 | self.foreground = "black" |
| 256 | self.items = [] |
| 257 | self.mouseX = None |
| 258 | self.mouseY = None |
| 259 | self.bind("<Button-1>", self._onClick) |
| 260 | self.height = height |
| 261 | self.width = width |
| 262 | self.autoflush = autoflush |
| 263 | self._mouseCallback = None |
| 264 | self.trans = None |
| 265 | self.closed = False |
| 266 | if autoflush: _root.update() |
| 267 | |
| 268 | def __checkOpen(self): |
| 269 | if self.closed: |