p3lib 1.1.121__py2.py3-none-any.whl → 1.1.122__py2.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.
p3lib/ngt.py
CHANGED
@@ -314,6 +314,14 @@ class TabbedNiceGui(object):
|
|
314
314
|
self._logMessageCount += 1
|
315
315
|
# We've received a log message so update progress bar if required.
|
316
316
|
self._updateProgressBar(msg)
|
317
|
+
# Wait a moment for DOM to update, then scroll to the end of the log
|
318
|
+
# so that the message just added is visible.
|
319
|
+
ui.timer(0.05, lambda: ui.run_javascript("""
|
320
|
+
const el = document.querySelector('.my-log');
|
321
|
+
if (el) {
|
322
|
+
el.scrollTop = el.scrollHeight;
|
323
|
+
}
|
324
|
+
"""), once=True)
|
317
325
|
|
318
326
|
def _infoGT(self, msg):
|
319
327
|
"""@brief Update an info level message. This must be called from the GUI thread.
|
@@ -406,7 +414,7 @@ class TabbedNiceGui(object):
|
|
406
414
|
self._progress.min = 0
|
407
415
|
# Don't allow user to adjust progress bar thumb
|
408
416
|
self._progress.disable()
|
409
|
-
self._log = ui.log(max_lines=2000)
|
417
|
+
self._log = ui.log(max_lines=2000).classes('my-log')
|
410
418
|
self._log.set_visibility(True)
|
411
419
|
|
412
420
|
with ui.row():
|
@@ -13,13 +13,13 @@ p3lib/login.html,sha256=DADTJGuvWQ-LTO4X6SaFdqK7JMW03DAa3lRieGD0d6g,2748
|
|
13
13
|
p3lib/mqtt_rpc.py,sha256=6LmFA1kR4HSJs9eWbOJORRHNY01L_lHWjvtE2fmY8P8,10511
|
14
14
|
p3lib/netif.py,sha256=3QV5OGdHhELIf4MBj6mx5MNCtVeZ7JXoNEkeu4KzCaE,9796
|
15
15
|
p3lib/netplotly.py,sha256=PMDx-w1jtRVW6Od5u_kuKbBxNpTS_Y88mMF60puMxLM,9363
|
16
|
-
p3lib/ngt.py,sha256=
|
16
|
+
p3lib/ngt.py,sha256=nTV1Pdq58EzTPjWjiufjyNDd3hF18AICXBU1ACUHbUw,43758
|
17
17
|
p3lib/pconfig.py,sha256=wGC6UJAIBksRjwKTfaw3Y6vAMkgey0QC2nhkCtqj1MQ,37738
|
18
18
|
p3lib/ssh.py,sha256=OyoAQ_h1L2RfkjTAChDrvLFfl4Fe_gBNdX5rvK-wKiw,42125
|
19
19
|
p3lib/table_plot.py,sha256=RPncwVlGUkkx5Fw0dHQedXo0TSPlTi__VrJBDzaMsuI,32116
|
20
20
|
p3lib/uio.py,sha256=Aaxc99XiE3d2f9vLjaN-bZsckoNxay5t0ujdK6PXGrw,23265
|
21
21
|
p3lib/windows_app.py,sha256=cSkGDIakamxylhOYk0BHjjUQwBBhOq7sij4a7xs9v44,3057
|
22
|
-
p3lib-1.1.
|
23
|
-
p3lib-1.1.
|
24
|
-
p3lib-1.1.
|
25
|
-
p3lib-1.1.
|
22
|
+
p3lib-1.1.122.dist-info/LICENSE,sha256=igqTy5u0kVWM1n-NUZMvAlinY6lVjAXKoag0okkS8V8,1067
|
23
|
+
p3lib-1.1.122.dist-info/METADATA,sha256=Fl4uT0pl-vO2cDXxd4u0L1lD6knolE721BmAPCUKDOU,1382
|
24
|
+
p3lib-1.1.122.dist-info/WHEEL,sha256=5druYqcII7zHXzX7qmN0TH895Jg3yuTtfjMgJIVBrKE,92
|
25
|
+
p3lib-1.1.122.dist-info/RECORD,,
|
File without changes
|
File without changes
|