pyvguicom 1.1.1__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.1"
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.1
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
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
23
23
 
24
24
  These classes are for python PyGobject (Gtk) development. They are used in
25
25
  several projects. They act as a simplification front end for the PyGtk / PyGobject
26
- classes.
26
+ classes.
27
27
 
28
28
  A sampler of what is in there (pasted from code, in no particular order):
29
29
 
@@ -38,20 +38,15 @@ A sampler of what is in there (pasted from code, in no particular order):
38
38
  class Lights(Gtk.Frame):
39
39
  class WideButt(Gtk.Button):
40
40
  class ScrollListBox(Gtk.Frame):
41
- class TextRow(Gtk.HBox):
42
- class RadioGroup(Gtk.Frame):
43
- class Led(Gtk.DrawingArea):
44
- class Lights(Gtk.Frame):
45
41
  class FrameTextView(Gtk.TextView):
46
42
  class Label(Gtk.Label):
47
43
  class Logo(Gtk.VBox):
48
44
  class xSpacer(Gtk.HBox):
49
- class ScrollListBox(Gtk.Frame):
50
45
  class ListBox(Gtk.TreeView):
51
46
 
52
47
  ... and a lot more ...
53
48
 
54
- ## Also includes python / Gtk primitives:
49
+ ## Also includes Some Python / Gtk primitives:
55
50
 
56
51
  def get_screen_wh():
57
52
  def get_screen_xy():
@@ -72,12 +67,12 @@ A sampler of what is in there (pasted from code, in no particular order):
72
67
 
73
68
  ## Example:
74
69
 
75
- The Label Button (smallbutt) takes a constructor, and feeds
70
+ The Label Button (SmallButt) takes a constructor, and feeds
76
71
  the arguments with defaults as one would expect.
77
72
 
78
73
  def __init__(self, textm="", widget=None, tooltip=None, font=None):
79
74
 
80
- The simplification effect allows one to create a smallbutt with no arguments,
75
+ The simplification effect allows one to create a Label Button with no arguments,
81
76
  and still have a somewhat reasonable outcome. The label example is trivial,
82
77
  the simplification takes a new dimension with classes like SimpleTree.
83
78
 
@@ -88,8 +83,10 @@ set on one line. This makes the code look more compact and maintainable.
88
83
 
89
84
  The test utilities can confirm correct operation; however being a visual
90
85
  set of classes, the real test is seeing the generated UI.
86
+ The test utilities can also be found in the project install directory,
87
+ starting with the text* prefix.
91
88
 
92
- See descendent projects for more examples. (pyedpro; pycal; pggui; ...)
89
+ See descendent projects for more examples. (pyedpro; pycal; pyvserv; ...)
93
90
 
94
91
  Peter Glen
95
92
 
@@ -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=fFig_4UxBEK8aqF_FhwiK83x9M19tfjwPFRn-VDKcJg,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,10 +23,23 @@ 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
- pyvguicom-1.1.1.dist-info/METADATA,sha256=UwXZ3p4N2WWqFtQyjc1C6DvZIC9sg4rdqa6vrd2TfuM,3109
30
- pyvguicom-1.1.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
31
- pyvguicom-1.1.1.dist-info/top_level.txt,sha256=TWIDRa6pMhB1Y4N_lGT1aO6tLoV7ZSUMlj0IaAHjm38,10
32
- pyvguicom-1.1.1.dist-info/RECORD,,
29
+ pyvguicom/docs/__index__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
+ pyvguicom/docs/browsewin.html,sha256=Kh1Q7Nz_NlxXM6bWCFTaieLnNTZlYvHjTVTED1kUW0Y,35939
31
+ pyvguicom/docs/htmledit.html,sha256=PFwdGF16CNNMi-CihUUEFoGWwl3LeZ1RJFzu3CVmdYo,44251
32
+ pyvguicom/docs/pgbox.html,sha256=6OhMHeR_KnNxh3ww0s2Ocv7XMjbAUvJx4f11PNAtWIk,81647
33
+ pyvguicom/docs/pgbutt.html,sha256=ROkE0IFdTzWBHf9KK6QxvYIWh32VQkw3CvElWvmBfDo,27700
34
+ pyvguicom/docs/pgentry.html,sha256=4X-xEyL0LW37lEdx0gB2O6FmkfnXDZicpggoOmI9gac,39527
35
+ pyvguicom/docs/pggui.html,sha256=7IfXdAqnebIeY87N3pExKUgzjQ7KmtOfKsNaqKTptzI,181257
36
+ pyvguicom/docs/pgsel.html,sha256=mOYoZFTD5v_NVAZ_5E6J_DSbV12rA0OvJsSWKhCD8cs,54919
37
+ pyvguicom/docs/pgsimp.html,sha256=rv1TIl5Jh_023tFru9ByFrT9QYnOv9ZEJB8AtAOyPcU,38344
38
+ pyvguicom/docs/pgtextview.html,sha256=LRKU-oapE_lV92qvUgljtb1rbIHlHtj6owd_0Wb1Yek,95560
39
+ pyvguicom/docs/pgutils.html,sha256=hgfyub2-7m1CtsUCC1VnJGsoW4bS6tDKo1kikG2wO4A,89497
40
+ pyvguicom/docs/pgwkit.html,sha256=XGWQsse_GDQvscmHKf0p8UPc9oL5SCr9JPhdoyz5gVM,93952
41
+ pyvguicom/docs/sutil.html,sha256=ZyFED9I34c5hUmAS-HRnSGlIri5no4xZ6Jz8h0Gf0JY,32044
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,,