3
# projectmanager message output window
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
# Copyright (C)2003 Phil Edwards, phil@linux2000.com
20
# vim: ts=4 sw=4 ai et
26
from PythonCard import model, dialog
29
class outputWindow(model.Background):
31
def on_initialize(self, event):
32
self.parent = self.GetParent()
35
self.components.returnedText.text = ''
36
self.components.importError.text = ''
40
def addLine(self, text):
41
if self.components.returnedText.enabled:
42
self.components.returnedText.text += str(text)
44
self.components.importError.text += str(text)
49
def on_closeBtn_mouseClick(self, event):
52
def on_close(self, event):
55
def on_clipBoardBtn_mouseClick(self, event):
56
if sys.platform.startswith('win'):
57
stuff = wx.TextDataObject()
58
stuff.SetText(self.components.clipBoardBtn.userdata)
59
if wx.TheClipboard.Open():
60
wx.TheClipboard.SetData(stuff)
61
wx.TheClipboard.Close()
65
if __name__ == '__main__':
66
app = model.PythonCardApp(outputWindow)