26 |
class MyModule(module.Module): |
class MyModule(module.Module): |
27 |
"""Test Window Frame class""" |
"""Test Window Frame class""" |
28 |
|
|
29 |
my_events = [X.Expose, X.ButtonPress] |
my_events = [X.Expose, X.ButtonPress, X.FocusIn, X.FocusOut] |
30 |
my_actions = { |
my_actions = { |
31 |
"win_move" : "move", |
"win_move" : "move", |
32 |
"win_toggle_iconified" : "win_toggle_maximize", |
"win_toggle_iconified" : "win_toggle_maximize", |
47 |
|
|
48 |
def load(self): |
def load(self): |
49 |
|
|
50 |
|
self.wm_actions.call_action('popup', 'foo') |
51 |
self.screen = self.display.screen() |
self.screen = self.display.screen() |
52 |
self.colormap = self.screen.default_colormap |
self.colormap = self.screen.default_colormap |
53 |
font = self.display.open_font("9x15") |
font = self.display.open_font("9x15") |