UI/UserInterface.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2474
8727522a69d5
child 2550
e15087ddb41e
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the main user interface. 7 Module implementing the main user interface.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
11 try:
12 str = unicode
13 except (NameError):
14 pass
9 15
10 import os 16 import os
11 import sys 17 import sys
12 import logging 18 import logging
13 19
61 """ 67 """
62 Constructor 68 Constructor
63 69
64 @param stderr flag indicating stderr is being redirected 70 @param stderr flag indicating stderr is being redirected
65 """ 71 """
66 super().__init__() 72 super(Redirector, self).__init__()
67 self.stderr = stderr 73 self.stderr = stderr
68 self.buffer = '' 74 self.buffer = ''
69 75
70 def __nWrite(self, n): 76 def __nWrite(self, n):
71 """ 77 """
143 @param noOpenAtStartup flag indicating that the open at startup option 149 @param noOpenAtStartup flag indicating that the open at startup option
144 should not be executed (boolean) 150 should not be executed (boolean)
145 @param restartArguments list of command line parameters to be used for a 151 @param restartArguments list of command line parameters to be used for a
146 restart (list of strings) 152 restart (list of strings)
147 """ 153 """
148 super().__init__() 154 super(UserInterface, self).__init__()
149 self.setAttribute(Qt.WA_DeleteOnClose) 155 self.setAttribute(Qt.WA_DeleteOnClose)
150 156
151 self.__restartArgs = restartArguments[:] 157 self.__restartArgs = restartArguments[:]
152 158
153 self.setStyle(Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) 159 self.setStyle(Preferences.getUI("Style"), Preferences.getUI("StyleSheet"))

eric ide

mercurial