Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
tests | 2025-02-05 | ||
mup | 2025-02-05 | ||
pggui.py | 2025-02-05 | 40.5 kB | |
Makefile | 2025-02-05 | 834 Bytes | |
icons.py | 2025-02-05 | 9.0 kB | |
htmledit.py | 2025-02-05 | 10.1 kB | |
pypacker.py | 2025-02-05 | 16.4 kB | |
pgutils.py | 2025-02-05 | 31.7 kB | |
pgbox.py | 2025-02-05 | 22.1 kB | |
pgtextview.py | 2025-02-05 | 29.4 kB | |
pydbase.pidx | 2025-02-05 | 32 Bytes | |
pydbase.pydb | 2025-02-05 | 32 Bytes | |
pgentry.py | 2025-02-05 | 4.9 kB | |
pgsimp.py | 2025-02-05 | 15.5 kB | |
browsewin.py | 2025-02-05 | 7.6 kB | |
pgbutt.py | 2025-02-05 | 6.9 kB | |
sample.rtf | 2025-02-05 | 2.4 kB | |
plug.py | 2025-02-05 | 1.0 kB | |
README.md | 2025-02-05 | 1.4 kB | |
psock.c | 2025-02-05 | 757 Bytes | |
pango_colors.txt | 2025-02-05 | 31.5 kB | |
pgwkit.py | 2025-02-05 | 26.2 kB | |
sutil.py | 2025-02-05 | 9.2 kB | |
Totals: 23 Items | 267.4 kB | 0 |
py Common
Common GUI routines (and classes) for python PyGobject (Gtk) development.
Just 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 TextRow(Gtk.HBox):
- class RadioGroup(Gtk.Frame):
- class Led(Gtk.DrawingArea):
- class Lights(Gtk.Frame):
- class FrameTextView(Gtk.TextView):
- class Label(Gtk.Label):
- class Logo(Gtk.VBox):
- class xSpacer(Gtk.HBox):
- class ScrollListBox(Gtk.Frame):
- class ListBox(Gtk.TreeView):
... and a lot more ...
These classes act as a simplification of the PyGtk (PyGobject) classes.
For instance the Label takes a constructor, and feeds the arguments as one would expect. Like this:
def __init__(self, textm = "", widget = None, tooltip=None, font = None):
The defaults are set to a reasonable value, and the named argument can be set on one line. This makes the code look compact and maintainable.
See descendent projects for examples. (pyedpro; pycal; pggui; ...)
This code will be merged / moved to the pyvguicom python module.
Peter Glen