| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/meh/ui/ |
Upload File : |
Ñò
ÏnðJc @ so d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d d d „ ƒ YZ d
S( t AbstractIntfc B sD e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s] The base class for Interfaces. This is an abstract class. It
provides methods that create and run various kinds of windows.
We provide a basic level of graphical and text oriented interfaces
here, but it should be possible for things like anaconda to supply
their own much more complicated ones with little effort.
c O s d S( so Create a new AbstractInterface instance. This method need not
be overridden by subclasses.
N( ( t selft argst kwargs( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyt __init__ s c O s
t ‚ d S( sÊ Display and run a dialog that brings up the network, if it is
currently disabled. This method must be provided by all subclasses,
and should return False if unsuccessful.
N( t NotImplementedError( R R R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyt
enableNetwork! s c O s
t ‚ d S( s Display and run a dialog that displays a message with the proper
buttons and images for quitting afterwards. This method must be
provided by all subclasses.
title -- The window's title.
message -- The window's text.
N( R ( R t titlet messageR R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyt
exitWindow( s c O s
t ‚ d S( s% Create and return an instance of the initial execption handling
dialog. This method must be provided by all subclasses.
text -- The short traceback (usually, just the stack trace).
exnFile -- A file containing the output of ExceptionDump.write().
N( R ( R t textt exnFileR R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyt mainExceptionWindow2 s c O s
t ‚ d S( sì Display a generic informational message. This can be an error,
status update, and so forth. It must be provided by all subclasses.
title -- The window's title.
message -- The window's text.
N( R ( R R R R R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyt
messageWindow; s c O s
t ‚ d S( s‚ Create and return an instance of the exception saving dialog. This
method must be provided by all subclasses.
N( R ( R R R R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyt saveExceptionWindowD s ( t __name__t
__module__t __doc__R R R R R
R ( ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyR s
t AbstractMainExceptionWindowc B s8 e Z d Z d d d „ Z d „ Z d „ Z d „ Z RS( s This abstract class describes the basic level of support required of
any interface that supplies a main exception window. The main exception
window is the initial dialog displayed by the exception handler that
provides the debug/save/quit options.
c O s
d | _ d S( sñ Create a new MainExceptionWindow instance. This must handle
creating the dialog and populating it with widgets, but must not
run the dialog. A self.dialog attribute should be created that
refers to the dialog itself.
shortTraceback -- The short traceback (usually, just the stack
trace).
longTracebackFile -- A file containing the output of
ExceptionDump.write().
i N( t rc( R t shortTracebackt longTracebackFileR R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyR P s c O s
t ‚ d S( s` Destroy the current dialog. This method must be provided by all
subclasses.
N( R ( R R R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyt destroy] s c O s | i S( sx Return which button was clicked on the interface. This method need
not be overridden by subclasses.
( R ( R R R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyt getrcc s c O s
t ‚ d S( sÑ Run the window and set a return value. This method does everything
after the interface has been set up, but does not destroy it. This
method must be provided by all subclasses.
N( R ( R R R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyt runi s N( R R R t NoneR R R R ( ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyR J s
t AbstractExitWindowc B s) e Z d Z d „ Z d „ Z d „ Z RS( sÊ This abstract class describes the basic level of support required of
a basic message dialog that should be displayed before the program
exits. All interfaces must provide this class.
c O s
d | _ d S( s! Create a new ExitWindow instance. This must handle creating the
dialog and putting the text into it, but must not run the dialog.
This method must be provided by all subclasses.
title -- The window's title.
text -- The window's text.
i N( R ( R R R
R R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyR u s c O s
t ‚ d S( s` Destroy the current dialog. This method must be provided by all
subclasses.
N( R ( R R R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyR s c O s
t ‚ d S( sÐ Run the window and set a return value. This method does everything
after the interface has been set up but does not destroy it. This
method must be provided by all subclasses.
N( R ( R R R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyR … s ( R R R R R R ( ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyR p s
t AbstractMessageWindowc B s) e Z d Z d „ Z d „ Z d „ Z RS( s‘ This abstract class describes the basic level of support required of
a basic message dialog. All interfaces must provide this class.
c O s
d | _ d S( s$ Create a new MessageWindow instance. This must handle creating the
dialog and putting the text into it, but must not run the dialog.
This method must be provided by all subclasses.
title -- The window's title.
text -- The window's text.
i N( R ( R R R
R R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyR s c O s
t ‚ d S( s` Destroy the current dialog. This method must be provided by all
subclasses.
N( R ( R R R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyR š s c O s
t ‚ d S( sÐ Run the window and set a return value. This method does everything
after the interface has been set up but does not destroy it. This
method must be provided by all subclasses.
N( R ( R R R ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyR s ( R R R R R R ( ( ( s3 /usr/lib/python2.6/site-packages/meh/ui/__init__.pyR Œ s
t AbstractSaveExceptionWindowc B s>