Fix display oddities on welcome message
[pyrook:pyrook.git] / pyrook_mobile.py
1 #! /usr/bin/env python
2 import sys
3
4 from PySide.QtGui import *
5
6 from PyRook.PyRook import PyRookApplication
7 from PyRook.ChatTab import ChatTab
8
9 # layout function for mobile pyrook
10 def do_layouts(self):
11     # create layouts
12     self.main_layout = QVBoxLayout()
13     # HAAAAAAAAACK - just hide the userlist behind the channel for now
14     # either want it accessible from the menu or maybe swipe between?
15     self.display_layout = QStackedLayout()
16     self.input_layout = QHBoxLayout()
17
18     # put things in layouts
19     self.main_layout.addWidget(self.display_layout)
20     self.main_layout.addLayout(self.input_layout)
21     self.display_layout.addWidget(self.chatstream)
22     self.display_layout.addWidget(self.user_list)
23     self.input_layout.addWidget(self.input_box)
24     self.input_layout.addWidget(self.msg_target)
25
26     self.setLayout(self.main_layout)
27
28 ChatTab.do_layouts = do_layouts
29
30 pyrook = PyRookApplication(sys.argv)
31
32 pyrook.exec_()