|
11 | 11 | from .error_reporter import ErrorReporter |
12 | 12 |
|
13 | 13 |
|
14 | | -class FrameAcceptEULA(FrameBaseTwoChoice): |
| 14 | +class FrameAcceptEULA(FrameBase): |
15 | 15 | def __init__(self, parent, controller): |
16 | | - super().__init__(parent, controller, "Do you accept the End-User " |
17 | | - "License agreement", |
18 | | - "I accept", "I refuse") |
19 | | - la = Text(self, height=30, width=30) |
20 | | - la.pack() |
21 | | - la.insert(END, self.controller.eula) |
22 | | - |
23 | | - def choice1_selected(self): |
| 16 | + super().__init__(parent, controller) |
| 17 | + label = tk.Label(self, |
| 18 | + text="Do you accept the End-User\n" |
| 19 | + "License agreement", |
| 20 | + font=controller.title_font) |
| 21 | + label.pack(side="top", fill="x", pady=10, padx=10) |
| 22 | + button1 = tk.Button(self, |
| 23 | + text="I accept", |
| 24 | + command=self.accept_eula) |
| 25 | + button1.pack(side="bottom", expand=True, padx=10, pady=1) |
| 26 | + |
| 27 | + text = Text(self) |
| 28 | + text.pack() |
| 29 | + text.insert(END, self.controller.eula) |
| 30 | + |
| 31 | + def accept_eula(self): |
24 | 32 | if self.controller.install_custom_frame is not None: |
25 | 33 | self.controller.switch_frame(self.controller.install_custom_frame) |
26 | 34 | else: |
27 | 35 | self.controller.switch_frame(FrameInstalling) |
28 | 36 |
|
29 | | - def choice2_selected(self): |
30 | | - self.quit() |
31 | | - |
32 | 37 |
|
33 | 38 | class FrameAcceptInstall(FrameBaseAccept): |
34 | 39 | def __init__(self, parent, controller): |
|
0 commit comments