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

Wrap init_pixmap with the DockApp method.

That way, it will update properties of the object, without passing
around ton of arguments.
This commit is contained in:
2022-04-13 17:12:10 +02:00
parent 4426988388
commit d95ea4280a

View File

@@ -26,3 +26,16 @@ class DockApp:
if event['type'] == 'destroynotify':
sys.exit(0)
event = helpers.get_event()
def prepare_pixmaps(self, background=None, patterns=None, style='3d',
margin=3):
dockapp_size = (self.width, self.height)
(self.char_width, self.char_height, self.charset_start,
self.charset_width) = helpers.init_pixmap(background, patterns,
style, dockapp_size[0],
dockapp_size[1], margin,
self.font,
self.background_color,
self.palette)