pyvguicom 1.0.1__tar.gz → 1.1.2__tar.gz

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.

Files changed (49) hide show
  1. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/PKG-INFO +8 -11
  2. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/README.md +7 -10
  3. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/browsewin.py +10 -11
  4. pyvguicom-1.1.2/pyvguicom/docs/__index__.py +0 -0
  5. pyvguicom-1.1.2/pyvguicom/docs/browsewin.html +956 -0
  6. pyvguicom-1.1.2/pyvguicom/docs/htmledit.html +903 -0
  7. pyvguicom-1.1.2/pyvguicom/docs/pgbox.html +2470 -0
  8. pyvguicom-1.1.2/pyvguicom/docs/pgbutt.html +727 -0
  9. pyvguicom-1.1.2/pyvguicom/docs/pgentry.html +1024 -0
  10. pyvguicom-1.1.2/pyvguicom/docs/pggui.html +5476 -0
  11. pyvguicom-1.1.2/pyvguicom/docs/pgsel.html +1539 -0
  12. pyvguicom-1.1.2/pyvguicom/docs/pgsimp.html +1048 -0
  13. pyvguicom-1.1.2/pyvguicom/docs/pgtextview.html +2421 -0
  14. pyvguicom-1.1.2/pyvguicom/docs/pgutils.html +2664 -0
  15. pyvguicom-1.1.2/pyvguicom/docs/pgwkit.html +2277 -0
  16. pyvguicom-1.1.2/pyvguicom/docs/sutil.html +907 -0
  17. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/pgentry.py +75 -9
  18. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/pggui.py +191 -92
  19. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/pgsel.py +9 -7
  20. pyvguicom-1.1.2/pyvguicom/pgtests.py +128 -0
  21. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/pgutils.py +42 -394
  22. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/pgwkit.py +36 -27
  23. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/testbutt.py +1 -1
  24. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/testcust.py +1 -1
  25. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/testentry.py +19 -7
  26. pyvguicom-1.1.2/pyvguicom/testgui.py +125 -0
  27. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/testlettsel.py +1 -1
  28. pyvguicom-1.1.2/pyvguicom/testmsgs.py +142 -0
  29. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/testnums.py +1 -1
  30. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/testsimple.py +4 -3
  31. pyvguicom-1.1.2/pyvguicom/testtests.py +79 -0
  32. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/testtextv.py +2 -2
  33. pyvguicom-1.1.2/pyvguicom/testutils.py +139 -0
  34. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom.egg-info/PKG-INFO +8 -11
  35. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom.egg-info/SOURCES.txt +19 -1
  36. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/setup.py +24 -1
  37. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/__init__.py +0 -0
  38. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/custwidg.py +0 -0
  39. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/htmledit.py +0 -0
  40. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/pgbox.py +0 -0
  41. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/pgbutt.py +0 -0
  42. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/pgsimp.py +0 -0
  43. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/pgtextview.py +0 -0
  44. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/plug.py +0 -0
  45. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/testicons.py +0 -0
  46. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom/testroot.py +0 -0
  47. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom.egg-info/dependency_links.txt +0 -0
  48. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/pyvguicom.egg-info/top_level.txt +0 -0
  49. {pyvguicom-1.0.1 → pyvguicom-1.1.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyvguicom
3
- Version: 1.0.1
3
+ Version: 1.1.2
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
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  These classes are for python PyGobject (Gtk) development. They are used in
6
6
  several projects. They act as a simplification front end for the PyGtk / PyGobject
7
- classes.
7
+ classes.
8
8
 
9
9
  A sampler of what is in there (pasted from code, in no particular order):
10
10
 
@@ -19,20 +19,15 @@ A sampler of what is in there (pasted from code, in no particular order):
19
19
  class Lights(Gtk.Frame):
20
20
  class WideButt(Gtk.Button):
21
21
  class ScrollListBox(Gtk.Frame):
22
- class TextRow(Gtk.HBox):
23
- class RadioGroup(Gtk.Frame):
24
- class Led(Gtk.DrawingArea):
25
- class Lights(Gtk.Frame):
26
22
  class FrameTextView(Gtk.TextView):
27
23
  class Label(Gtk.Label):
28
24
  class Logo(Gtk.VBox):
29
25
  class xSpacer(Gtk.HBox):
30
- class ScrollListBox(Gtk.Frame):
31
26
  class ListBox(Gtk.TreeView):
32
27
 
33
28
  ... and a lot more ...
34
29
 
35
- ## Also includes python / Gtk primitives:
30
+ ## Also includes Some Python / Gtk primitives:
36
31
 
37
32
  def get_screen_wh():
38
33
  def get_screen_xy():
@@ -53,12 +48,12 @@ A sampler of what is in there (pasted from code, in no particular order):
53
48
 
54
49
  ## Example:
55
50
 
56
- The Label Button (smallbutt) takes a constructor, and feeds
51
+ The Label Button (SmallButt) takes a constructor, and feeds
57
52
  the arguments with defaults as one would expect.
58
53
 
59
54
  def __init__(self, textm="", widget=None, tooltip=None, font=None):
60
55
 
61
- The simplification effect allows one to create a smallbutt with no arguments,
56
+ The simplification effect allows one to create a Label Button with no arguments,
62
57
  and still have a somewhat reasonable outcome. The label example is trivial,
63
58
  the simplification takes a new dimension with classes like SimpleTree.
64
59
 
@@ -69,8 +64,10 @@ set on one line. This makes the code look more compact and maintainable.
69
64
 
70
65
  The test utilities can confirm correct operation; however being a visual
71
66
  set of classes, the real test is seeing the generated UI.
67
+ The test utilities can also be found in the project install directory,
68
+ starting with the text* prefix.
72
69
 
73
- See descendent projects for more examples. (pyedpro; pycal; pggui; ...)
70
+ See descendent projects for more examples. (pyedpro; pycal; pyvserv; ...)
74
71
 
75
72
  Peter Glen
76
73
 
@@ -5,7 +5,8 @@
5
5
  import os, sys, getopt, signal, random, time, warnings
6
6
 
7
7
  realinc = os.path.realpath(os.path.dirname(__file__) + os.sep + "../pycommon")
8
- sys.path.append(realinc)
8
+ if realinc not in sys.path:
9
+ sys.path.append(realinc)
9
10
 
10
11
  from pgutils import *
11
12
  from pggui import *
@@ -13,7 +14,6 @@ from pgsimp import *
13
14
 
14
15
  import gi
15
16
  gi.require_version("Gtk", "3.0")
16
- #gi.require_version('WebKit2', '4.0')
17
17
 
18
18
  from gi.repository import Gtk
19
19
  from gi.repository import Gdk
@@ -21,15 +21,12 @@ from gi.repository import GLib
21
21
  from gi.repository import GObject
22
22
  from gi.repository import Pango
23
23
 
24
- ret = ""
24
+ from pedlib import pedconfig
25
25
 
26
- try:
27
- import pgwkit
28
- except:
29
- print("Cannot load WebKit2", sys.exc_info())
30
- sys.exit(1)
26
+ import pgwkit
27
+ #print("pgwkit:", pgwkit)
31
28
 
32
- class brow_win(Gtk.VBox):
29
+ class browserWin(Gtk.VBox):
33
30
 
34
31
  ''' Collection of URL bar, toolbar, status bar '''
35
32
 
@@ -55,9 +52,11 @@ class brow_win(Gtk.VBox):
55
52
  try:
56
53
  self.webview = pgwkit.pgwebw(self)
57
54
  except:
58
- print("Please install webkit2")
55
+ print("Please install WebKit2", sys.exc_info())
56
+ #if pedconfig.conf.verbose:
57
+ put_exception("start webview")
59
58
  #sys.exit(1)
60
- raise
59
+ #raise
61
60
 
62
61
  #self.old_html = ""
63
62
  self.scroll_win.add(self.webview)
File without changes