mirror of
https://github.com/gryf/wmdocklib.git
synced 2025-12-19 12:28:10 +01:00
Moved open_xwindow from helpers to base class.
This commit is contained in:
@@ -50,6 +50,14 @@ class DockApp:
|
|||||||
self.redraw()
|
self.redraw()
|
||||||
time.sleep(0.3)
|
time.sleep(0.3)
|
||||||
|
|
||||||
|
def open_xwindow(self):
|
||||||
|
"""Open the X window of given width and height.
|
||||||
|
|
||||||
|
The XBM mask is here created from the upper left rectangle of the
|
||||||
|
XPM using the given width and height."""
|
||||||
|
pywmgeneral.open_xwindow(len(sys.argv), sys.argv, self.width,
|
||||||
|
self.height)
|
||||||
|
|
||||||
def prepare_pixmaps(self, background=None, patterns=None, style='3d',
|
def prepare_pixmaps(self, background=None, patterns=None, style='3d',
|
||||||
margin=3):
|
margin=3):
|
||||||
|
|
||||||
|
|||||||
@@ -283,14 +283,6 @@ def init_pixmap(background=None, patterns=None, style='3d', width=64,
|
|||||||
return char_width, char_height, charset_start, charset_width
|
return char_width, char_height, charset_start, charset_width
|
||||||
|
|
||||||
|
|
||||||
def open_xwindow(argv, w, h):
|
|
||||||
"""Open the X window of given width and height.
|
|
||||||
|
|
||||||
The XBM mask is here created from the upper left rectangle of the
|
|
||||||
XPM using the given width and height."""
|
|
||||||
pywmgeneral.open_xwindow(len(argv), argv, w, h)
|
|
||||||
|
|
||||||
|
|
||||||
def redraw():
|
def redraw():
|
||||||
"""Redraw the window."""
|
"""Redraw the window."""
|
||||||
pywmgeneral.redraw_window()
|
pywmgeneral.redraw_window()
|
||||||
|
|||||||
Reference in New Issue
Block a user