~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/apps/tutorial/__init__.py

  • Committer: mattgiuca
  • Date: 2008-01-30 06:14:53 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:332
console plugin: Now presents minimize/maximize buttons, allowing itself to be
opened and closed.
The console python "present" function now also requires a windowpane=True if
in window pane mode (updated tutorial).
Implemented minimal/maximal classes in console.css (a lot of this feature is
CSS-based - min and max buttons just change the class and the CSS handles the
mode switch).

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        handle_subject_menu(req, subject)
102
102
    else:
103
103
        handle_worksheet(req, subject, worksheet)
104
 
        plugins.console.present(req)
 
104
        plugins.console.present(req, windowpane=True)
105
105
 
106
106
def handle_toplevel_menu(req):
107
107
    # This is represented as a directory. Redirect and add a slash if it is