|
10 | 10 | from typing import Dict, Optional |
11 | 11 | from urllib import parse |
12 | 12 |
|
13 | | -from blog2epub.common.crawler import prepare_url |
14 | | - |
15 | 13 | if sys.__stdout__ is None or sys.__stderr__ is None: |
16 | 14 | os.environ["KIVY_NO_CONSOLELOG"] = "1" |
17 | 15 |
|
|
28 | 26 | from kivy.uix.popup import Popup |
29 | 27 | from kivy.uix.textinput import TextInput |
30 | 28 |
|
31 | | -from blog2epub.Blog2Epub import BadUrlException, Blog2Epub |
32 | | -from common.assets import asset_path |
| 29 | +from blog2epub import Blog2Epub |
| 30 | +from blog2epub.common.assets import asset_path |
| 31 | +from blog2epub.common.crawler import prepare_url |
| 32 | +from blog2epub.common.exceptions import BadUrlException |
33 | 33 | from blog2epub.common.interfaces import EmptyInterface |
34 | 34 |
|
| 35 | + |
35 | 36 | SIZE = 3 / Metrics.density / Metrics.density |
36 | 37 | F_SIZE = 3 / Metrics.density |
37 | 38 |
|
@@ -230,7 +231,7 @@ def about_url_click(inst): |
230 | 231 |
|
231 | 232 | class AboutPopupLabel(Label): |
232 | 233 | def __init__(self, **kwargs): |
233 | | - super(AboutPopupLabel, self).__init__(**kwargs) |
| 234 | + Label.__init__(self, **kwargs) |
234 | 235 | self.font_size = dp(8 * F_SIZE) |
235 | 236 | self.font_name = "RobotoMono-Regular" |
236 | 237 | self.size_hint = (1, 0.1) |
@@ -320,7 +321,7 @@ def get(self, key): |
320 | 321 |
|
321 | 322 | class Blog2EpubKivy(App): |
322 | 323 | def __init__(self, **kwargs): |
323 | | - super(Blog2EpubKivy, self).__init__(**kwargs) |
| 324 | + App.__init__(self, **kwargs) |
324 | 325 | self.title = f"blog2epub - v. {Blog2Epub.version}" |
325 | 326 | if platform.system() == "Darwin": |
326 | 327 | self.icon = asset_path("blog2epub.icns") |
|
0 commit comments