Show More
@@ -166,6 +166,12 b' class IPythonQtConsoleApp(BaseIPythonApplication, IPythonConsoleApp):' | |||
|
166 | 166 | stylesheet = Unicode('', config=True, |
|
167 | 167 | help="path to a custom CSS stylesheet") |
|
168 | 168 | |
|
169 | hide_menubar = CBool(False, config=True, | |
|
170 | help="Start the console window with the menu bar hidden.") | |
|
171 | ||
|
172 | maximize = CBool(False, config=True, | |
|
173 | help="Start the console window maximized.") | |
|
174 | ||
|
169 | 175 | plain = CBool(False, config=True, |
|
170 | 176 | help="Use a plaintext widget instead of rich text (plain can't print/save).") |
|
171 | 177 | |
@@ -269,6 +275,10 b' class IPythonQtConsoleApp(BaseIPythonApplication, IPythonConsoleApp):' | |||
|
269 | 275 | self.window.add_tab_with_frontend(self.widget) |
|
270 | 276 | self.window.init_menu_bar() |
|
271 | 277 | |
|
278 | # Ignore on OSX, where there is always a menu bar | |
|
279 | if sys.platform != 'darwin' and self.hide_menubar: | |
|
280 | self.window.menuBar().setVisible(False) | |
|
281 | ||
|
272 | 282 | self.window.setWindowTitle('IPython') |
|
273 | 283 | |
|
274 | 284 | def init_colors(self, widget): |
@@ -355,6 +365,9 b' class IPythonQtConsoleApp(BaseIPythonApplication, IPythonConsoleApp):' | |||
|
355 | 365 | def start(self): |
|
356 | 366 | |
|
357 | 367 | # draw the window |
|
368 | if self.maximize: | |
|
369 | self.window.showMaximized() | |
|
370 | else: | |
|
358 | 371 | self.window.show() |
|
359 | 372 | self.window.raise_() |
|
360 | 373 |
General Comments 0
You need to be logged in to leave comments.
Login now