q2rad 0.1.199__py3-none-any.whl → 0.1.200__py3-none-any.whl

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.

q2rad/q2reports.py CHANGED
@@ -90,6 +90,7 @@ class Q2RadReport(Q2Report):
90
90
  def repo_valid(mode):
91
91
  form.heap.mode = mode
92
92
  form.close()
93
+
93
94
  form.add_control("/s")
94
95
  form.add_control("/h")
95
96
  form.add_control("/s")
@@ -125,6 +126,8 @@ class Q2RadReport(Q2Report):
125
126
  def repo_edit():
126
127
  report_edit_form = Q2ReportEdit()
127
128
  report_edit_form.after_form_show = lambda: report_edit_form.set_content(self.report_content)
129
+ report_edit_form.data.update(self.data)
130
+ report_edit_form.data_sets.update(self.data_sets)
128
131
  report_edit_form.run()
129
132
  form.close()
130
133
 
@@ -341,6 +344,8 @@ class ReportForm:
341
344
  class Q2ReportEdit(Q2Form):
342
345
  def __init__(self):
343
346
  super().__init__("Report Edit")
347
+ self.data = {}
348
+ self.data_sets = {}
344
349
 
345
350
  def on_init(self):
346
351
  self.query_edit = Q2QueryEdit()
@@ -610,6 +615,8 @@ class Q2ReportReport(Q2Form):
610
615
 
611
616
  def run_report(self, output_file="html"):
612
617
  rep = Q2RadReport(self.report_edit_form.get_content())
618
+ rep.data.update(self.report_edit_form.data)
619
+ rep.data_sets.update(self.report_edit_form.data_sets)
613
620
  rep.run(output_file)
614
621
 
615
622
  def set_default_report_content(self):
@@ -679,7 +686,8 @@ class Q2ReportReport(Q2Form):
679
686
  prop_key = prop_name.replace("_", "-")
680
687
 
681
688
  if not self.w.__getattr__(prop_name).check.is_checked():
682
- del self.current_propertys[prop_key]
689
+ if prop_key in self.current_propertys:
690
+ del self.current_propertys[prop_key]
683
691
  else:
684
692
  self.current_propertys[prop_key] = prop_value
685
693
  self.style_changed()
@@ -2001,6 +2009,9 @@ class Q2ReportRows(Q2Form, ReportForm):
2001
2009
  cell_data = self.rows_data.cells.get(f"{row},{column}", {})
2002
2010
 
2003
2011
  self.rows_sheet.cell_styles[f"{row},{column}"] = cell_data.get("style", {})
2012
+ self.rows_sheet.cell_styles[f"{row},{column}"]["border-color"] = (
2013
+ "white" if self.q2_app.q2style.color_mode == "dark" else "black"
2014
+ )
2004
2015
  rowspan = cell_data.get("rowspan", 1)
2005
2016
  colspan = cell_data.get("colspan", 1)
2006
2017
  if rowspan > 1 or colspan > 1:
q2rad/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.199"
1
+ __version__ = "0.1.200"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: q2rad
3
- Version: 0.1.199
3
+ Version: 0.1.200
4
4
  Summary: RAD - database, GUI, reports
5
5
  Author: Andrei Puchko
6
6
  Author-email: andrei.puchko@gmx.de
@@ -13,12 +13,12 @@ q2rad/q2packages.py,sha256=ifRu8LuVrrTphiJe1JUVED_KB2sHJCPVnZq9VEh3K8w,3473
13
13
  q2rad/q2queries.py,sha256=ABbr66YRLmleo2wcpvwcQwSPt_htjQsYXgoCqRRQSbo,12512
14
14
  q2rad/q2rad.py,sha256=C1uQCCcADqjOjro0njeJQDpYFE77Qs8uh-zrD8KlNx4,45774
15
15
  q2rad/q2raddb.py,sha256=ISqT5EBFO7eaXcQRNpA0hMiRU84kbd-FcfckwKMlGfs,4506
16
- q2rad/q2reports.py,sha256=oE0WKgDn9ZRyMCw19CvumUFIXoVhQ26zrRIk9Sq0xYc,83899
16
+ q2rad/q2reports.py,sha256=Q-bZONOSDDQPrLziHTpW_L6FS82CkWzxITkv5EX5x98,84439
17
17
  q2rad/q2stylesettings.py,sha256=_aK-44kFfkaEGdwH7FzRs1KP7nsP08bL8t8OmdjM2eY,4767
18
18
  q2rad/q2utils.py,sha256=A4mLTVC6AdS4sTcHaG-kR8kjw4iZaXpeblmizdAwrkA,19057
19
- q2rad/version.py,sha256=8lW_ETkSFIIr4StGyMO88b_QqwGxmOcPcbo2up7-rJQ,23
20
- q2rad-0.1.199.dist-info/entry_points.txt,sha256=DmsJQE6f3wYuhdN2h6ARYxSe8_d03paeepfGpdVj5rs,42
21
- q2rad-0.1.199.dist-info/LICENSE,sha256=JRR3LlR18ghhYXT4G2cWgXmnxRvcuVcKlqncWWK4MRY,10347
22
- q2rad-0.1.199.dist-info/METADATA,sha256=_zo2lAZ6zd2gbbYWdAV01DJuEbwlgLIQZy7ZMyTEzHQ,3369
23
- q2rad-0.1.199.dist-info/WHEEL,sha256=WGfLGfLX43Ei_YORXSnT54hxFygu34kMpcQdmgmEwCQ,88
24
- q2rad-0.1.199.dist-info/RECORD,,
19
+ q2rad/version.py,sha256=YLzyssJcJQq9Z7UGnnzstJXTtYCbDATejLSXEhXUnGw,23
20
+ q2rad-0.1.200.dist-info/entry_points.txt,sha256=DmsJQE6f3wYuhdN2h6ARYxSe8_d03paeepfGpdVj5rs,42
21
+ q2rad-0.1.200.dist-info/LICENSE,sha256=JRR3LlR18ghhYXT4G2cWgXmnxRvcuVcKlqncWWK4MRY,10347
22
+ q2rad-0.1.200.dist-info/METADATA,sha256=m_DuSIRA_FVdwwV8VmR6sdDwAijqcZwZ-OezsfSVz-I,3369
23
+ q2rad-0.1.200.dist-info/WHEEL,sha256=WGfLGfLX43Ei_YORXSnT54hxFygu34kMpcQdmgmEwCQ,88
24
+ q2rad-0.1.200.dist-info/RECORD,,