radboy 0.0.667__py3-none-any.whl → 0.0.669__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 radboy might be problematic. Click here for more details.

@@ -35,18 +35,24 @@ class SimpleScanUi:
35
35
  ask_qty=default
36
36
 
37
37
  if value is None:
38
- value=Control(func=FormBuilderMkText,ptext="+/-:",helpText="How much to decrement or increment",data="float")
39
- if value in [None,'NaN']:
40
- return
41
- elif value in ['d',]:
42
- value=1
38
+ if not ask_qty:
39
+ value=Control(func=FormBuilderMkText,ptext=f"+/- To old(1):",helpText="How much to decrement or increment",data="float")
40
+ if value in [None,'NaN']:
41
+ return
42
+ elif value in ['d',]:
43
+ value=1
44
+ else:
45
+ value=0
43
46
 
44
47
  if value > 0:
45
48
  inc="add/+"
49
+ by_with="to"
46
50
  elif value < 0:
47
- inc="dec/minux/subtract/-"
51
+ inc="subtract/-"
52
+ by_with="from"
48
53
  else:
49
- inc="equal/== 0"
54
+ inc="modify"
55
+ by_with='with'
50
56
  with Session(ENGINE) as session:
51
57
  while True:
52
58
  scanText=Control(func=FormBuilderMkText,ptext="Barcode/Code/Text",helpText="whatever it is you are scanning, its just text.",data="string")
@@ -60,7 +66,7 @@ class SimpleScanUi:
60
66
  cta=len(results)
61
67
  if cta < 1:
62
68
  if ask_qty:
63
- value=Control(func=FormBuilderMkText,ptext="+/-:",helpText="How much to decrement or increment",data="float")
69
+ value=Control(func=FormBuilderMkText,ptext=f"+/- To old(1):",helpText="How much to decrement or increment",data="float")
64
70
  if value in [None,'NaN']:
65
71
  return
66
72
  elif value in ['d',]:
@@ -70,6 +76,16 @@ class SimpleScanUi:
70
76
  scanned=SimpleScan(ScannedText=scanText,DTOE=datetime.now(),TimesScanned=value)
71
77
  session.add(scanned)
72
78
  session.commit()
79
+ elif cta == 1:
80
+ index=0
81
+ if ask_qty:
82
+ value=Control(func=FormBuilderMkText,ptext=f"+/- To old({results[index].TimesScanned}):",helpText="How much to decrement or increment",data="float")
83
+ if value in [None,'NaN']:
84
+ return
85
+ elif value in ['d',]:
86
+ value=1
87
+ results[index].TimesScanned+=value
88
+ session.commit()
73
89
  else:
74
90
  while True:
75
91
  try:
@@ -78,7 +94,7 @@ class SimpleScanUi:
78
94
  htext.append(std_colorize(i,num,cta))
79
95
  htext='\n'.join(htext)
80
96
  print(htext)
81
- selected=Control(func=FormBuilderMkText,ptext=f"{Fore.orange_red_1}DUPLICATE SELECT{Fore.light_yellow} Which indexes do you wish to {inc} {value}?",helpText=htext,data="list")
97
+ selected=Control(func=FormBuilderMkText,ptext=f"{Fore.orange_red_1}DUPLICATE SELECT{Fore.light_yellow} Which indexes do you wish to {inc} TimesScanned {by_with}?",helpText=htext,data="list")
82
98
  if selected in [None,'NAN','NaN']:
83
99
  return
84
100
  elif selected in ['d',]:
@@ -88,7 +104,7 @@ class SimpleScanUi:
88
104
  index=int(i)
89
105
  if index_inList(index,results):
90
106
  if ask_qty:
91
- value=Control(func=FormBuilderMkText,ptext="+/-:",helpText="How much to decrement or increment",data="float")
107
+ value=Control(func=FormBuilderMkText,ptext=f"+/- To old({results[index].TimesScanned}):",helpText="How much to decrement or increment",data="float")
92
108
  if value in [None,'NaN']:
93
109
  return
94
110
  elif value in ['d',]:
@@ -230,7 +246,7 @@ class SimpleScanUi:
230
246
 
231
247
  def list_scan(self,sch=False,dated=False,menu=False):
232
248
  default=True
233
- FORMAT=f"terse==short;default={default};output is short using {Fore.light_steel_blue}[- chunked ScannedText]{Fore.light_magenta}ScannedText:{Fore.light_red}ssid[{Fore.green_yellow}DTOE]={Fore.cyan}TimesScanned{Style.reset}"
249
+ FORMAT=f"terse==short;default={default};output is short using {Fore.light_steel_blue}[- chunked ScannedText]{Fore.light_magenta}ScannedText:{Fore.light_red}ssid[{Fore.green_yellow}DTOE]={Fore.cyan}TimesScanned | Note = \"if not None or ''\"{Style.reset}"
234
250
  terse=Control(func=FormBuilderMkText,ptext="Terse output [False/True] ",helpText=FORMAT,data="boolean")
235
251
  if terse is None:
236
252
  return
@@ -278,7 +294,10 @@ class SimpleScanUi:
278
294
  i.ScannedText=''
279
295
  chunked=stre(i.ScannedText)/4
280
296
  chunked='-'.join(chunked)
281
- msg=std_colorize(f"{Fore.light_steel_blue}[{chunked}]{Fore.light_magenta}{i.ScannedText}:{Fore.light_red}{i.ssid}[{Fore.green_yellow}{i.DTOE}] = {Fore.cyan}{i.TimesScanned} {Fore.dark_goldenrod}",num,cta)
297
+ note=i.Note
298
+ if note not in ['',None,' ']:
299
+ note=f" | Note = '''{i.Note}'''"
300
+ msg=std_colorize(f"{Fore.light_steel_blue}[{chunked}]{Fore.light_magenta}{i.ScannedText}:{Fore.light_red}{i.ssid}[{Fore.green_yellow}{i.DTOE}] = {Fore.cyan}{i.TimesScanned} {Fore.dark_goldenrod}{note}",num,cta)
282
301
  print(msg)
283
302
  if menu:
284
303
  doWhat=Control(func=FormBuilderMkText,ptext="clear/clr, reset/rst, edit/e/ed, or delete/del/remove/rm (<Enter> Continues)?",helpText="clear/clr, reset/rst, edit/e/ed or delete/del/remove/rm?",data="string")
@@ -311,7 +330,8 @@ class SimpleScanUi:
311
330
  else:
312
331
  msg=std_colorize(f"{Fore.light_magenta}{i.ScannedText}:{Fore.light_red}{i.ssid}[{Fore.green_yellow}{i.DTOE}] = {Fore.cyan}{i.TimesScanned} {Fore.dark_goldenrod}",num,cta)
313
332
  print(msg)
314
-
333
+ if (num % 15) == 0 and num > 0:
334
+ print(f"{Fore.grey_70}{'*'*os.get_terminal_size().columns}")
315
335
  print(FORMAT)
316
336
 
317
337
  def edit(self,i:SimpleScan,excludes=['ssid',],reset=False,clear=False):
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.667'
1
+ VERSION='0.0.669'
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.667
3
+ Version: 0.0.669
4
4
  Summary: A Retail Calculator for Android/Linux
5
5
  Author: Carl Joseph Hirner III
6
6
  Author-email: Carl Hirner III <k.j.hirner.wisdom@gmail.com>
@@ -5,7 +5,7 @@ radboy/Holidays.txt,sha256=y-JZPihh5iaWKxMIHNXD39yVuVmf1vMs4FdNDcg0f1Y,3114
5
5
  radboy/InventoryGlossary.txt,sha256=018-Yqca6DFb10jPdkUY-5qhkRlQN1k3rxoTaERQ-LA,91008
6
6
  radboy/RecordMyCodes.py,sha256=KI7Jmf3MX0Zng_YUvcjVKN2siyUOhaMAHQGzpPuX8KQ,41373
7
7
  radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
8
- radboy/__init__.py,sha256=a0sI53iPtS2LFFxGDhM_1q89dRG3Sx91jgHBmJPXQaE,17
8
+ radboy/__init__.py,sha256=erBJX94e0b7luwg7Ep_v9dVd0oo9onLH7jLrWLcDu9U,17
9
9
  radboy/api_key,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  radboy/case-export-2024-05-14-13-10-00.672971.xlsx,sha256=Wd592d_VLFmfUI9KKKSVjNwjV91euc1T7ATyvwvUhlg,5431
11
11
  radboy/case-export-2024-05-14-13-13-22.540614.xlsx,sha256=OnGrhmScHfGp_mVaWW-LNMsqrQgyZDpiU3wV-2s3U5Q,5556
@@ -102,7 +102,7 @@ radboy/DB/msg.txt,sha256=YxWed6A6tuP1djJ5QPS2Rz3ING4TKKf8kUiCCPtzHXE,7937
102
102
  radboy/DB/rad_types.py,sha256=mtZpBMIFPcw1IhmO7UQ7nV_1gNNURs4INwx3x40hLUU,4725
103
103
  radboy/DB/renderText2Png.py,sha256=PWnTicLTfOPg9UlQYia3wMpjM9rh7MIyDVsmcsDRUBo,5678
104
104
  radboy/DB/testClass.py,sha256=t3zT1gbvReUncnPY8R9JUfKXQ5UEB2wmQx8DNeds0hI,310
105
- radboy/DB/SimpleScanner/SimpleScanner.py,sha256=5XRCaZZ78uz-u9OXexfMeJKb_wq_t5O8VKnTPapoZ0k,22334
105
+ radboy/DB/SimpleScanner/SimpleScanner.py,sha256=QZP2CV_GKGvnIz3x2Q6MRHT9LMKL7FnhTDRP_xVLi14,23392
106
106
  radboy/DB/SimpleScanner/__init__.py,sha256=BknbeGbEv48sqoCWwCQbKbgbqLUuBAyeeIh4EFerJ0g,899
107
107
  radboy/DB/__pycache__/DatePicker.cpython-311.pyc,sha256=VMJnJ7scb4VHMQi1HDZCF67KVYfb9m-fZK96IAoJzTQ,19676
108
108
  radboy/DB/__pycache__/DatePicker.cpython-312.pyc,sha256=cc5XWJ6Sbtcg0xWPz3SOP93VceIqr1pH42kjkLl5iYs,30294
@@ -404,7 +404,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
404
404
  radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
405
405
  radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
406
406
  radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
407
- radboy/__pycache__/__init__.cpython-313.pyc,sha256=CFv9JC4TiZDP4ONEUsrek_rrS1PUmNazk0xqElAe4tc,165
407
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=uzJFFYLqmYtI-dd1pdPygPVsDJqdHDykIARoujKlQ9o,165
408
408
  radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
409
409
  radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
410
410
  radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
@@ -432,7 +432,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
432
432
  radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
433
433
  radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
434
434
  radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
435
- radboy-0.0.667.dist-info/METADATA,sha256=GDu-Z7naS5wdnvb_lXnAKvYhWMziu5wRvls8uwkgkTo,1891
436
- radboy-0.0.667.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
437
- radboy-0.0.667.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
438
- radboy-0.0.667.dist-info/RECORD,,
435
+ radboy-0.0.669.dist-info/METADATA,sha256=lKugmllt-n-d0MxsQy01VOUn645EKPPNFcZTJl7mxLY,1891
436
+ radboy-0.0.669.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
437
+ radboy-0.0.669.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
438
+ radboy-0.0.669.dist-info/RECORD,,