pyvguicom 1.1.2__py3-none-any.whl → 1.2.0__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 pyvguicom might be problematic. Click here for more details.

pyvguicom/pggui.py CHANGED
@@ -24,7 +24,7 @@ import pgsimp
24
24
 
25
25
  IDXERR = "Index is larger than the available number of controls."
26
26
 
27
- VERSION = "1.1.2"
27
+ VERSION = "1.2.0"
28
28
 
29
29
  gui_testmode = 0
30
30
 
pyvguicom/pgtests.py CHANGED
@@ -90,6 +90,17 @@ def randstr(lenx):
90
90
 
91
91
  return strx
92
92
 
93
+ def randstrrand(lenmin, lenmax):
94
+
95
+ lenx = random.randint(lenmin, lenmax)
96
+ strx = ""
97
+ for aa in range(lenx):
98
+ ridx = random.randint(0, len(allstr)-1)
99
+ rr = allstr[ridx]
100
+ strx += str(rr)
101
+
102
+ return strx
103
+
93
104
  def randasc(lenx):
94
105
 
95
106
  strx = ""
pyvguicom/testtests.py CHANGED
@@ -16,6 +16,16 @@ from gi.repository import PangoCairo
16
16
 
17
17
  import pgtests
18
18
 
19
+ def test_randstr(arg2, arg3):
20
+ rrr = pgtests.randstr(12)
21
+ print(rrr)
22
+ arg3.set_text(rrr)
23
+
24
+ def test_randstrrand(arg2, arg3):
25
+ rrr = pgtests.randstrrand(6, 18)
26
+ print(rrr)
27
+ arg3.set_text(rrr)
28
+
19
29
  def test_rand(arg2, arg3):
20
30
  rrr = pgtests.randascii(12)
21
31
  print(rrr)
@@ -49,6 +59,14 @@ if __name__ == "__main__":
49
59
  hbox.pack_start(lab1, 1, 1, 0)
50
60
  vbox.pack_start(hbox, 1, 1, 0)
51
61
 
62
+ butt = Gtk.Button.new_with_mnemonic("Test Rand Str")
63
+ butt.connect("clicked", test_randstr, lab1)
64
+ vbox.pack_start(butt, 0, 0, 2)
65
+
66
+ butt = Gtk.Button.new_with_mnemonic("Test Rand Rand")
67
+ butt.connect("clicked", test_randstrrand, lab1)
68
+ vbox.pack_start(butt, 0, 0, 2)
69
+
52
70
  butt = Gtk.Button.new_with_mnemonic("Test Rand")
53
71
  butt.connect("clicked", test_rand, lab1)
54
72
  vbox.pack_start(butt, 0, 0, 2)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyvguicom
3
- Version: 1.1.2
3
+ Version: 1.2.0
4
4
  Summary: High power secure server GUI utility helpers.
5
5
  Home-page: https://github.com/pglen/pyguicom.git
6
6
  Author: Peter Glen
@@ -5,10 +5,10 @@ pyvguicom/htmledit.py,sha256=gSxabFFGFxgaNvYtWOsXaaHCzYB-r6i7J5dhVLriQ94,10064
5
5
  pyvguicom/pgbox.py,sha256=kI25mzT1o0PP-q6DT1Tg32geHKslnxIN5FjqVYe77Fc,20271
6
6
  pyvguicom/pgbutt.py,sha256=GP_to9fMGuQXmAlYlHcvCYLHaCOb76mTt-SFvYS5BwY,6723
7
7
  pyvguicom/pgentry.py,sha256=GJj7hHeSO_p6nVtExOy98TZwtOn-mahuBHC8t-K6xrM,10486
8
- pyvguicom/pggui.py,sha256=H7rN9VgHIYopgHYa2CMR-a9SRLELESqkaiqzWLq7yVc,46488
8
+ pyvguicom/pggui.py,sha256=ZnFynb4gpJ6io80Sx4oMc5FxmPW0DvPaqhjOQXy1ves,46488
9
9
  pyvguicom/pgsel.py,sha256=VTmyeXB83sLxR5vbgLKcpPQlaVi8A4GdNCRdP4G3A5c,13350
10
10
  pyvguicom/pgsimp.py,sha256=CrdyTrvtii3KCS-HAJ1W6WDnfRqmkHyI_dRHHzRrTBU,7628
11
- pyvguicom/pgtests.py,sha256=ndlTMnRd4ECHziOixJcgT1KtCJxIXTJfnMGZhajKoYI,3228
11
+ pyvguicom/pgtests.py,sha256=H6yIplftkuptcySxvm6BdamvyC0SQm-LLN7mztai02c,3461
12
12
  pyvguicom/pgtextview.py,sha256=aAlmJX4UISI3MQtUI-_OoFacVLFIhcNIILzezC_x0DI,29341
13
13
  pyvguicom/pgutils.py,sha256=t0HQNQCFWLA7mc0GPRs5tIL95FWfEsTnXKZ8jijm07M,31329
14
14
  pyvguicom/pgwkit.py,sha256=bCyGJA5ILCLmHZGQEDkIu38NRhYFa8nxdYu30eBqK_Y,26237
@@ -23,7 +23,7 @@ pyvguicom/testmsgs.py,sha256=VhGRO5WZFDtloAMlw773hpXlmWCjRQI2jSqIoZLgLRU,4067
23
23
  pyvguicom/testnums.py,sha256=T8NQFAviRv7Wx5IbBgEHfmthwXixuj6XgbGd8oUrq-o,3214
24
24
  pyvguicom/testroot.py,sha256=MwGooMkNczSAQOj5aJbNnfPjSLsPmQrHk5OWY68rI3A,4082
25
25
  pyvguicom/testsimple.py,sha256=IB5_5AKVpxeXHCYDc2pZxI0iA8b8Ps4mwiBitBajiq8,2371
26
- pyvguicom/testtests.py,sha256=U3LGeByhFRBD4tc56uqM69xX3UY24efukMEWfro8ZOA,1883
26
+ pyvguicom/testtests.py,sha256=fQa4no70HruzD3CCD1i3EdUwlO3ApgQGof3WeIhKAlw,2379
27
27
  pyvguicom/testtextv.py,sha256=3BkdjE5nLL3ZFLHQqeP2eAhO31BKjQO8SwHfBEMffdU,7126
28
28
  pyvguicom/testutils.py,sha256=2mznZUNREo-tiOs1OWDPDNWBcMSq1kOYNvlTG0TsZ_s,3965
29
29
  pyvguicom/docs/__index__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -39,7 +39,7 @@ pyvguicom/docs/pgtextview.html,sha256=LRKU-oapE_lV92qvUgljtb1rbIHlHtj6owd_0Wb1Ye
39
39
  pyvguicom/docs/pgutils.html,sha256=hgfyub2-7m1CtsUCC1VnJGsoW4bS6tDKo1kikG2wO4A,89497
40
40
  pyvguicom/docs/pgwkit.html,sha256=XGWQsse_GDQvscmHKf0p8UPc9oL5SCr9JPhdoyz5gVM,93952
41
41
  pyvguicom/docs/sutil.html,sha256=ZyFED9I34c5hUmAS-HRnSGlIri5no4xZ6Jz8h0Gf0JY,32044
42
- pyvguicom-1.1.2.dist-info/METADATA,sha256=uUBE4fVQnKhy1WT0CibEJmD_qAELb5wbzNMNJdW3rHU,3062
43
- pyvguicom-1.1.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
44
- pyvguicom-1.1.2.dist-info/top_level.txt,sha256=TWIDRa6pMhB1Y4N_lGT1aO6tLoV7ZSUMlj0IaAHjm38,10
45
- pyvguicom-1.1.2.dist-info/RECORD,,
42
+ pyvguicom-1.2.0.dist-info/METADATA,sha256=UmtgstRBaJz6vFBnOm6lbYDxA0GWfSzVD-yljnjWXnc,3062
43
+ pyvguicom-1.2.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
44
+ pyvguicom-1.2.0.dist-info/top_level.txt,sha256=TWIDRa6pMhB1Y4N_lGT1aO6tLoV7ZSUMlj0IaAHjm38,10
45
+ pyvguicom-1.2.0.dist-info/RECORD,,