listpick 0.1.15.4__py3-none-any.whl → 0.1.15.6__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 listpick might be problematic. Click here for more details.

listpick/listpick_app.py CHANGED
@@ -866,7 +866,11 @@ class Picker:
866
866
  number = f"{i}. " if self.number_columns else ""
867
867
  # number = f"{intStringToExponentString(str(i))}. " if self.number_columns else ""
868
868
  header_str += number
869
- header_str += f"{self.header[i]:^{self.column_widths[i]-len(number)}}"
869
+ # header_str += f"{self.header[i]:^{self.column_widths[i]-len(number)}}"
870
+ col_str = self.header[i][:self.column_widths[i]-len(number)]
871
+
872
+
873
+ header_str += f"{col_str:^{self.column_widths[i]-len(number)}}"
870
874
  header_str += self.separator
871
875
 
872
876
  header_str = header_str[self.leftmost_char:]
@@ -885,7 +889,7 @@ class Picker:
885
889
  highlighted_col_str = (number+f"{self.header[self.selected_column]:^{self.column_widths[self.selected_column]-len(number)}}") + self.separator
886
890
  end_of_highlighted_col_str = self.rows_w-(highlighed_col_startx+len(highlighted_col_str)) if (highlighed_col_startx+len(highlighted_col_str)) > self.rows_w else len(highlighted_col_str)
887
891
  start_of_highlighted_col_str = max(self.leftmost_char - len(up_to_selected_col), 0)
888
- self.stdscr.addstr(header_ypos, highlighed_col_startx , highlighted_col_str[start_of_highlighted_col_str:end_of_highlighted_col_str], curses.color_pair(self.colours_start+19) | curses.A_BOLD)
892
+ self.stdscr.addstr(header_ypos, highlighed_col_startx , highlighted_col_str[start_of_highlighted_col_str:end_of_highlighted_col_str][:self.column_widths[self.selected_column]+len(self.separator)], curses.color_pair(self.colours_start+19) | curses.A_BOLD)
889
893
  except:
890
894
  pass
891
895
 
@@ -3720,28 +3724,29 @@ def main() -> None:
3720
3724
  pass
3721
3725
 
3722
3726
  # function_data["colour_theme_number"] = 3
3723
- function_data["modes"] = [
3724
- {
3725
- 'filter': '',
3726
- 'sort': 0,
3727
- 'name': 'All',
3728
- },
3729
- {
3730
- 'filter': '--2 miss',
3731
- 'name': 'miss',
3732
- },
3733
- {
3734
- 'filter': '--2 mp4',
3735
- 'name': 'mp4',
3736
- },
3737
- ]
3738
- highlights = [
3739
- {
3740
- "field": 1,
3741
- "match": "a",
3742
- "color": 8,
3743
- }
3744
- ]
3727
+ # function_data["modes"] = [
3728
+ # {
3729
+ # 'filter': '',
3730
+ # 'sort': 0,
3731
+ # 'name': 'All',
3732
+ # },
3733
+ # {
3734
+ # 'filter': '--2 miss',
3735
+ # 'name': 'miss',
3736
+ # },
3737
+ # {
3738
+ # 'filter': '--2 mp4',
3739
+ # 'name': 'mp4',
3740
+ # },
3741
+ # ]
3742
+ # function_data["highlights"] = [
3743
+ # {
3744
+ # "field": 1,
3745
+ # "match": "a",
3746
+ # "color": 8,
3747
+ # }
3748
+ # ]
3749
+
3745
3750
  # function_data["cell_cursor"] = True
3746
3751
  # function_data["display_modes"] = True
3747
3752
  # function_data["centre_in_cols"] = True
@@ -3756,17 +3761,17 @@ def main() -> None:
3756
3761
  # function_data["infobox_items"] = [["1"], ["2"], ["3"]]
3757
3762
  # function_data["infobox_title"] = "Title"
3758
3763
  # function_data["footer_string"] = "Title"
3759
- function_data["highlights"] = highlights
3760
3764
  # function_data["show_footer"] = False
3761
3765
  # function_data["paginate"] = True
3762
3766
  # function_data["debug"] = True
3763
3767
  # function_data["debug_level"] = 1
3764
3768
 
3765
- function_data["split_right"] = True
3766
- function_data["split_right_proportion"] = 2/3
3767
- function_data["split_right_refresh_data"] = data_refresh_randint_title
3768
- function_data["split_right_function"] = right_split_display_list
3769
- function_data["split_right_data"] = ["Files", [str(x) for x in range(100)]]
3769
+
3770
+ # function_data["split_right"] = True
3771
+ # function_data["split_right_proportion"] = 2/3
3772
+ # function_data["split_right_refresh_data"] = data_refresh_randint_title
3773
+ # function_data["split_right_function"] = right_split_display_list
3774
+ # function_data["split_right_data"] = ["Files", [str(x) for x in range(100)]]
3770
3775
 
3771
3776
 
3772
3777
  # function_data["split_right_refresh_data"] = get_dl
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: listpick
3
- Version: 0.1.15.4
3
+ Version: 0.1.15.6
4
4
  Summary: Listpick is a powerful TUI data tool for creating TUI apps or viewing/comparing tabulated data.
5
5
  Home-page: https://github.com/grimandgreedy/listpick
6
6
  Author: Grim
@@ -1,6 +1,6 @@
1
1
  listpick/__init__.py,sha256=ExXc97-bibodH--wlwpQivl0zCNR5D1hvpvrf7OBofU,154
2
2
  listpick/__main__.py,sha256=wkCjDdqw093W27yWwnlC3nG_sMRKaIad7hHHWy0RBgY,193
3
- listpick/listpick_app.py,sha256=5TgVHIyR1ssENY9F8hD2AUbzsMICDaIgc5-n7ct2igY,193813
3
+ listpick/listpick_app.py,sha256=AYZNXy4Gc-_F4kLXiPB1-321mkfl3WxP9IRkM3VcYfk,194065
4
4
  listpick/pane/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  listpick/pane/get_data.py,sha256=21PTDXt9HP-4vZV4QUM8sidTqDEaKnKCDshl3-cSRCo,2255
6
6
  listpick/pane/pane_functions.py,sha256=7xynpd3HjZnt6s9W0ZsJlrmYvGCMstAI5OJ7EuQSzdg,3092
@@ -29,9 +29,9 @@ listpick/utils/sorting.py,sha256=WZZiVlVA3Zkcpwji3U5SNFlQ14zVEk3cZJtQirBkecQ,532
29
29
  listpick/utils/table_to_list_of_lists.py,sha256=XBj7eGBDF15BRME-swnoXyOfZWxXCxrXp0pzsBfcJ5g,12224
30
30
  listpick/utils/user_input.py,sha256=oyJZPAwA7UGAclPhdPL44tKnPIVNHWhX-tZEnCdBKC0,4318
31
31
  listpick/utils/utils.py,sha256=McOl9uT3jh7l4TIWeSd8ZGjK_e7r0YZF0Gl20yI6fl0,13873
32
- listpick-0.1.15.4.dist-info/licenses/LICENSE.txt,sha256=2mP-MRHJptADDNE9VInMNg1tE-C6Qv93Z4CCQKrpg9w,1061
33
- listpick-0.1.15.4.dist-info/METADATA,sha256=k72_XlnzWvZSrL-6V68XRy8WbkhxdJfy7NQQ8DaRIcU,8131
34
- listpick-0.1.15.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
- listpick-0.1.15.4.dist-info/entry_points.txt,sha256=-QCf_BKIkUz35Y9nkYpjZWs2Qg0KfRna2PAs5DnF6BE,43
36
- listpick-0.1.15.4.dist-info/top_level.txt,sha256=5mtsGEz86rz3qQDe0D463gGjAfSp6A3EWg4J4AGYr-Q,9
37
- listpick-0.1.15.4.dist-info/RECORD,,
32
+ listpick-0.1.15.6.dist-info/licenses/LICENSE.txt,sha256=2mP-MRHJptADDNE9VInMNg1tE-C6Qv93Z4CCQKrpg9w,1061
33
+ listpick-0.1.15.6.dist-info/METADATA,sha256=NHtilLmI6XfhHiraJOWmAddA8c-3vvpgGUW496LE5CU,8131
34
+ listpick-0.1.15.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
+ listpick-0.1.15.6.dist-info/entry_points.txt,sha256=-QCf_BKIkUz35Y9nkYpjZWs2Qg0KfRna2PAs5DnF6BE,43
36
+ listpick-0.1.15.6.dist-info/top_level.txt,sha256=5mtsGEz86rz3qQDe0D463gGjAfSp6A3EWg4J4AGYr-Q,9
37
+ listpick-0.1.15.6.dist-info/RECORD,,