1
0
mirror of https://github.com/gryf/wmdocklib.git synced 2025-12-18 12:00:20 +01:00

Moved open_xwindow from helpers to base class.

This commit is contained in:
2022-04-18 19:13:16 +02:00
parent 811ecac3d3
commit 72996466cf
2 changed files with 8 additions and 8 deletions

View File

@@ -50,6 +50,14 @@ class DockApp:
self.redraw()
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',
margin=3):

View File

@@ -283,14 +283,6 @@ def init_pixmap(background=None, patterns=None, style='3d', width=64,
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():
"""Redraw the window."""
pywmgeneral.redraw_window()