pyvguicom 1.0.1__py3-none-any.whl → 1.1.2__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/browsewin.py +10 -11
- pyvguicom/docs/__index__.py +0 -0
- pyvguicom/docs/browsewin.html +956 -0
- pyvguicom/docs/htmledit.html +903 -0
- pyvguicom/docs/pgbox.html +2470 -0
- pyvguicom/docs/pgbutt.html +727 -0
- pyvguicom/docs/pgentry.html +1024 -0
- pyvguicom/docs/pggui.html +5476 -0
- pyvguicom/docs/pgsel.html +1539 -0
- pyvguicom/docs/pgsimp.html +1048 -0
- pyvguicom/docs/pgtextview.html +2421 -0
- pyvguicom/docs/pgutils.html +2664 -0
- pyvguicom/docs/pgwkit.html +2277 -0
- pyvguicom/docs/sutil.html +907 -0
- pyvguicom/pgentry.py +75 -9
- pyvguicom/pggui.py +191 -92
- pyvguicom/pgsel.py +9 -7
- pyvguicom/pgtests.py +128 -0
- pyvguicom/pgutils.py +42 -394
- pyvguicom/pgwkit.py +36 -27
- pyvguicom/testbutt.py +1 -1
- pyvguicom/testcust.py +1 -1
- pyvguicom/testentry.py +19 -7
- pyvguicom/testgui.py +125 -0
- pyvguicom/testlettsel.py +1 -1
- pyvguicom/testmsgs.py +142 -0
- pyvguicom/testnums.py +1 -1
- pyvguicom/testsimple.py +4 -3
- pyvguicom/testtests.py +79 -0
- pyvguicom/testtextv.py +2 -2
- pyvguicom/testutils.py +139 -0
- {pyvguicom-1.0.1.dist-info → pyvguicom-1.1.2.dist-info}/METADATA +8 -11
- pyvguicom-1.1.2.dist-info/RECORD +45 -0
- pyvguicom-1.0.1.dist-info/RECORD +0 -27
- {pyvguicom-1.0.1.dist-info → pyvguicom-1.1.2.dist-info}/WHEEL +0 -0
- {pyvguicom-1.0.1.dist-info → pyvguicom-1.1.2.dist-info}/top_level.txt +0 -0
pyvguicom/browsewin.py
CHANGED
|
@@ -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
|
|
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
|
-
|
|
24
|
+
from pedlib import pedconfig
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
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
|
|
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
|
|
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
|