Beispiel #1
0
    def view_application(self, context, view, kind=None, handler=None,
            id="", scrollable=None, args=None):
        """ Creates a Pyjamas web application, using information from the
            specified View object.

        Parameters
        ----------
        context : object or dictionary
            A single object or a dictionary of string/object pairs, whose
            trait attributes are to be edited. If not specified, the current
            object is used.
        view : view or string
            A View object that defines a user interface for editing trait
            attribute values.
        kind : string
            The type of user interface window to create. See the
            **enthought.traits.ui.view.kind_trait** trait for values and
            their meanings. If *kind* is unspecified or None, the **kind**
            attribute of the View object is used.
        handler : Handler object
            A handler object used for event handling in the dialog box. If
            None, the default handler for Traits UI is used.
        id : string
            A unique ID for persisting preferences about this user interface,
            such as size and position. If not specified, no user preferences
            are saved.
        scrollable : Boolean
            Indicates whether the dialog box should be scrollable. When set to
            True, scroll bars appear on the dialog box if it is not large
            enough to display all of the items in the view at one time.
        """
        import view_application

        return view_application.view_application(
            context, view, kind, handler, id, scrollable, args)
Beispiel #2
0
 def view_application(self, context, view, kind=None):
     """ Creates a GUI toolkit specific modal dialog user interface that 
         runs as a complete application using information from the 
         specified View object.
     """
     import view_application
     return view_application.view_application(context, view, kind)
Beispiel #3
0
 def view_application ( self, context, view, kind = None ):        
     """ Creates a GUI toolkit specific modal dialog user interface that 
         runs as a complete application using information from the 
         specified View object.
     """
     import view_application
     return view_application.view_application( context, view, kind )
Beispiel #4
0
    def view_application(self,
                         context,
                         view,
                         kind=None,
                         handler=None,
                         id='',
                         scrollable=None,
                         args=None):
        """ Creates a wxPython modal dialog user interface that
            runs as a complete application, using information from the
            specified View object.

        Parameters
        ----------
        context : object or dictionary
            A single object or a dictionary of string/object pairs, whose trait
            attributes are to be edited. If not specified, the current object is
            used.
        view : view or string
            A View object that defines a user interface for editing trait
            attribute values.
        kind : string
            The type of user interface window to create. See the
            **traitsui.view.kind_trait** trait for values and
            their meanings. If *kind* is unspecified or None, the **kind**
            attribute of the View object is used.
        handler : Handler object
            A handler object used for event handling in the dialog box. If
            None, the default handler for Traits UI is used.
        id : string
            A unique ID for persisting preferences about this user interface,
            such as size and position. If not specified, no user preferences
            are saved.
        scrollable : Boolean
            Indicates whether the dialog box should be scrollable. When set to
            True, scroll bars appear on the dialog box if it is not large enough
            to display all of the items in the view at one time.

        """
        import view_application
        return view_application.view_application(context, view, kind, handler,
                                                 id, scrollable, args)