| Conditions | 1 |
| Total Lines | 28 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python3 |
||
| 23 | def version(self): |
||
| 24 | """バージョン情報を表示. |
||
| 25 | |||
| 26 | ・バージョン情報表示ダイアログを表示する。 |
||
| 27 | ×を押すまで消えないようにする。 |
||
| 28 | """ |
||
| 29 | img = tk.PhotoImage(data=self.TITLE_BINARY) |
||
| 30 | window = tk.Toplevel(self.app) |
||
| 31 | canvas = tk.Canvas(window, width=600, height=300) |
||
| 32 | canvas.create_image(0, 0, anchor='nw', image=img) |
||
| 33 | canvas.create_text( |
||
| 34 | 550, |
||
| 35 | 290, |
||
| 36 | anchor='se', |
||
| 37 | text='Copyright (C) 2019-2020 Yamahara Yoshihiro', |
||
| 38 | font=('', 12) |
||
| 39 | ) |
||
| 40 | canvas.create_text( |
||
| 41 | 420, |
||
| 42 | 120, |
||
| 43 | anchor='nw', |
||
| 44 | text=self.VERSION, |
||
| 45 | font=('', 12) |
||
| 46 | ) |
||
| 47 | canvas.pack() |
||
| 48 | window.title(self.dic.get_dict("Novel Editor")) |
||
| 49 | window.resizable(width=0, height=0) |
||
| 50 | window.mainloop() |
||
| 51 | |||
| 61 |