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