diff options
author | Eduardo Silva <edsiper@monotop.(none)> | 2008-11-08 12:05:33 (GMT) |
---|---|---|
committer | Eduardo Silva <edsiper@monotop.(none)> | 2008-11-08 12:05:33 (GMT) |
commit | 74889fa918400754d61e80efe64cb5c2067611b9 (patch) | |
tree | 76aca69ab8c6443479afbecde0780b2e450faaa1 | |
parent | 4cbbc59c9016b22323c952b7cd5f6f2bea8122c3 (diff) |
Fix Windows (Tomeu)
-rw-r--r-- | purk/windows.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/purk/windows.py b/purk/windows.py index 6223469..26064f9 100644 --- a/purk/windows.py +++ b/purk/windows.py @@ -65,7 +65,9 @@ class Window(gtk.VBox): self.input.set_position(-1) self.input.event(event) - def write(self, text, activity_type=widgets.EVENT, line_ending='\n', fg=None): + def write(self, text, activity_type=None, line_ending='\n', fg=None): + if activity_type is None: + activity_type = widgets.EVENT if self.manager.get_active() != self: self.activity = activity_type self.output.write(text, line_ending, fg) |