Skip to main content

High power secure server GUI utility helpers.

Project description

pyvguicom PyV GUI Common utilities

Common GUI routines and classes

These classes are for python PyGobject (Gtk) development. They are used in several projects. They act as a simplification front end for the PyGtk / PyGobject classes.

A sampler of what is in there (pasted from code, in no particular order):

class CairoHelper():
class TextTable(Gtk.Table):
class TextRow(Gtk.HBox):
class RadioGroup(Gtk.Frame):
class Led(Gtk.DrawingArea):
class SeparatorMenuItem(Gtk.SeparatorMenuItem):
class Menu():
class MenuButt(Gtk.DrawingArea):
class Lights(Gtk.Frame):
class WideButt(Gtk.Button):
class ScrollListBox(Gtk.Frame):
class FrameTextView(Gtk.TextView):
class Label(Gtk.Label):
class Logo(Gtk.VBox):
class xSpacer(Gtk.HBox):
class ListBox(Gtk.TreeView):

... and a lot more ...

Also includes Some Python / Gtk primitives:

def get_screen_wh():
def get_screen_xy():
def print_exception(xstr):
def message(strx, parent = None, title = None, icon = Gtk.MessageType.INFO):
def usleep(msec):
def tmpname(indir, template):
def mainloop():
def time_n2s(ttt):
def time_s2n(sss):
def yes_no_cancel(title, message, cancel = True, parent = None):
def yn_key(win, event, cancel):
def opendialog(parent=None):
def savedialog(resp):
def leadspace(strx):

 ... and a lot more ...

Example:

The Label Button (SmallButt) takes a constructor, and feeds the arguments with defaults as one would expect.

 def __init__(self, textm="", widget=None, tooltip=None, font=None):

The simplification effect allows one to create a Label Button with no arguments, and still have a somewhat reasonable outcome. The label example is trivial, the simplification takes a new dimension with classes like SimpleTree.

The defaults are set to a reasonable value, and the named argument(s) can be set on one line. This makes the code look more compact and maintainable.

Tests:

The test utilities can confirm correct operation; however being a visual set of classes, the real test is seeing the generated UI. The test utilities can also be found in the project install directory, starting with the text* prefix.

See descendent projects for more examples. (pyedpro; pycal; pyvserv; ...)

Peter Glen

// EOF

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyvguicom-1.3.3.tar.gz (184.8 kB view details)

Uploaded Source

Built Distribution

pyvguicom-1.3.3-py3-none-any.whl (204.0 kB view details)

Uploaded Python 3

File details

Details for the file pyvguicom-1.3.3.tar.gz.

File metadata

  • Download URL: pyvguicom-1.3.3.tar.gz
  • Upload date:
  • Size: 184.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.2 rfc3986/1.5.0 tqdm/4.64.1 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for pyvguicom-1.3.3.tar.gz
Algorithm Hash digest
SHA256 6b7f04f07a93f4c7a03dbfc9d8613e26136ef833a74fce0496ebbe82818419ae
MD5 c46039dbc1a5f301fb7a1a52f0c33328
BLAKE2b-256 f819a724d0442dd3d21492d374869cf0338fb54693d178e9aaa265c51672b6f2

See more details on using hashes here.

File details

Details for the file pyvguicom-1.3.3-py3-none-any.whl.

File metadata

  • Download URL: pyvguicom-1.3.3-py3-none-any.whl
  • Upload date:
  • Size: 204.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.2 rfc3986/1.5.0 tqdm/4.64.1 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for pyvguicom-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 20398715337e7c72e303c4069f7e5504fe7fc385a884e3464687d2141a7accf0
MD5 d51e24bdb9eb7d089c58879a8961143e
BLAKE2b-256 1f4b0bf3f20027600a120f2c1a1621164a7d6c3c2484218bd1ff2c7a3e056728

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page