|
1 | | -"""Main app code for openAndroidInstaller.""" |
| 1 | +"""Main file of the OpenAndroidInstaller.""" |
| 2 | + |
| 3 | +# This file is part of OpenAndroidInstaller. |
| 4 | +# OpenAndroidInstaller is free software: you can redistribute it and/or modify it under the terms of |
| 5 | +# the GNU General Public License as published by the Free Software Foundation, |
| 6 | +# either version 3 of the License, or (at your option) any later version. |
| 7 | + |
| 8 | +# OpenAndroidInstaller is distributed in the hope that it will be useful, but WITHOUT ANY |
| 9 | +# WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 10 | +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
| 11 | + |
| 12 | +# You should have received a copy of the GNU General Public License along with OpenAndroidInstaller. |
| 13 | +# If not, see <https://www.gnu.org/licenses/>.""" |
| 14 | +# Author: Tobias Sterbak |
2 | 15 |
|
3 | | -from ctypes import alignment |
4 | 16 | import webbrowser |
5 | 17 | from os import path |
6 | 18 | from subprocess import STDOUT, CalledProcessError, call, check_output |
|
38 | 50 | from widgets import call_button, confirm_button, get_title |
39 | 51 |
|
40 | 52 | # Toggle to True for development purposes |
41 | | -DEVELOPMENT = False |
| 53 | +DEVELOPMENT = False |
42 | 54 | DEVELOPMENT_CONFIG = "Pixel 3a" |
43 | 55 |
|
44 | 56 |
|
@@ -360,7 +372,9 @@ def confirm(self, e): |
360 | 372 | self.view.controls = [] |
361 | 373 | # if a config is loaded, display a progress bar |
362 | 374 | if self.config: |
363 | | - self.progress_bar.value = (self.num_steps - 1) / (self.num_total_steps + 2) # don't show on the first step |
| 375 | + self.progress_bar.value = (self.num_steps - 1) / ( |
| 376 | + self.num_total_steps + 2 |
| 377 | + ) # don't show on the first step |
364 | 378 | self.num_steps += 1 # increase the step counter |
365 | 379 | # if there are default views left, display them first |
366 | 380 | if self.default_views: |
|
0 commit comments