def __init__(self, client, board): Screen.__init__(self, client, 'bbs') self.size = [client.columns, client.rows] self.board = self.loadBoard(board) self.header = Label() self.header.label = u""" ___ __ _ / / |__ / /__| |__ / /| '_ \ / / _ \ '_ \ / / | |_) / / __/ | | | /_/ |_.__/_/ \___|_| |_|""" self.header.pack() self.header.position = [0,0] self.header.setBackground(Canvas.COLOR_BLUE) self.addChild(self.header) self.threads = {} self.dirty = False self.lastpoll = 0 self.newthreadpane = Panel() self.newthreadpane.setBackground(Canvas.COLOR_BLUE) self.newthreadpane.position = [6,6] self.addChild(self.newthreadpane) t = Label('Name:') t.pack() t.position = [0,0] t.setBackground(Canvas.COLOR_BLUE) self.newthreadpane.addChild(t) self.name = TextField() self.name.size = [15,1] self.name.position = [5,0] self.newthreadpane.addChild(self.name) t = Label('Betreff:') t.pack() t.position = [21,0] t.setBackground(Canvas.COLOR_BLUE) self.newthreadpane.addChild(t) self.topic = TextField() self.topic.size = [15,1] self.topic.position = [29,0] self.newthreadpane.addChild(self.topic) t = Label('Text:') t.pack() t.position = [0,3] t.setBackground(Canvas.COLOR_BLUE) self.newthreadpane.addChild(t) self.text = TextArea() self.text.size = [40,10] self.text.position = [5,3] self.newthreadpane.addChild(self.text) self.sendbutton = Button('Senden') self.sendbutton.size = [10,1] self.sendbutton.position = [5,14] self.sendbutton.onPress = self.newThread self.sendbutton.setBackground(Canvas.COLOR_BLUE) self.newthreadpane.addChild(self.sendbutton) self.scrollpane = ScrollPane() self.scrollpane.size = [self.size[0],0] self.scrollpane.position = [0,18] self.scrollpane.setBackground(Canvas.COLOR_BLUE) self.addChild(self.scrollpane) self.setBackground(Canvas.COLOR_BLUE) self.repaint()