q2rad 0.1.149__tar.gz → 0.1.150__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of q2rad might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: q2rad
3
- Version: 0.1.149
3
+ Version: 0.1.150
4
4
  Summary: RAD - database, GUI, reports
5
5
  Author: Andrei Puchko
6
6
  Author-email: andrei.puchko@gmx.de
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "q2rad"
3
- version = "0.1.149"
3
+ version = "0.1.150"
4
4
  description = "RAD - database, GUI, reports"
5
5
  authors = ["Andrei Puchko <andrei.puchko@gmx.de>"]
6
6
  readme = "README.md"
@@ -633,8 +633,6 @@ class Q2RadApp(Q2App):
633
633
  self.process_events()
634
634
 
635
635
  def get_package_versions(self, package):
636
- import time
637
- time.sleep(1)
638
636
  response = open_url(f"https://pypi.python.org/pypi/{package}/json") # noqa F405
639
637
  if response:
640
638
  latest_version = json.load(response)["info"]["version"]
@@ -32,6 +32,7 @@ class AppStyleSettings(Q2Form):
32
32
  super().__init__("Style Settings")
33
33
 
34
34
  def on_init(self):
35
+ self.color_modes = {"dark": "Dark", "light": "Light", "clean": "Clean"}
35
36
  self.last_font_size = self.q2_app.q2style.font_size
36
37
  # print("==", self.last_font_size)
37
38
  self.last_color_mode = self.q2_app.q2style.color_mode
@@ -43,7 +44,9 @@ class AppStyleSettings(Q2Form):
43
44
  control="radio",
44
45
  datalen=10,
45
46
  valid=self.style_valid,
46
- data=2,
47
+ data=self.color_modes.get(
48
+ self.q2_app.q2style.color_mode, self.q2_app.q2style.get_system_color_mode()
49
+ ),
47
50
  )
48
51
 
49
52
  self.add_control("/h")
@@ -68,10 +71,10 @@ class AppStyleSettings(Q2Form):
68
71
  self.ok_button = 1
69
72
  self.cancel_button = 1
70
73
 
71
- def after_form_show(self):
72
- self.s.color_mode = {"dark": "Dark", "light": "Light", "clean": "Clean"}.get(
73
- self.q2_app.q2style.color_mode, self.q2_app.q2style.get_system_color_mode()
74
- )
74
+ # def after_form_show(self):
75
+ # self.s.color_mode = self.color_modes.get(
76
+ # self.q2_app.q2style.color_mode, self.q2_app.q2style.get_system_color_mode()
77
+ # )
75
78
 
76
79
  def get_color_mode(self):
77
80
  color_mode = self.s.color_mode.lower()
@@ -0,0 +1 @@
1
+ __version__ = "0.1.150"
@@ -1 +0,0 @@
1
- __version__ = "0.1.149"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes