;ò
ÎÑAHc           @   sz  d  k  Z  d  k Z d  k Z d  k Z d k l Z d  k Z d  k Z d  k Z y e	 Wn  e
 j
 o d k  l	 Z	 n Xy e Wn d k l Z n Xd g Z d Z d e i i f d „  ƒ  YZ d e i i f d	 „  ƒ  YZ d
 e i i f d „  ƒ  YZ d e i f d „  ƒ  YZ d e i f d „  ƒ  YZ d e i f d „  ƒ  YZ d e i f d „  ƒ  YZ d e  i f d „  ƒ  YZ d  S(   N(   s   ipapi(   s   sorted(   s   Sets   igrids#  
<?xml version='1.0' encoding='iso-8859-1'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="igrid_help.css" type="text/css" />
<title>igrid help</title>
</head>
<body>
<h1>igrid help</h1>


<h2>Commands</h2>


<h3>pick (P)</h3>
<p>Pick the whole row (object is available as "_")</p>

<h3>pickattr (Shift-P)</h3>
<p>Pick the attribute under the cursor</p>

<h3>pickallattrs (Shift-C)</h3>
<p>Pick the complete column under the cursor (i.e. the attribute under the
cursor) from all currently fetched objects. These attributes will be returned
as a list.</p>

<h3>pickinput (I)</h3>
<p>Pick the current row as next input line in IPython. Additionally the row is stored as "_"</p>

<h3>pickinputattr (Shift-I)</h3>
<p>Pick the attribute under the cursor as next input line in IPython. Additionally the row is stored as "_"</p>

<h3>enter (E)</h3>
<p>Enter the object under the cursor. (what this mean depends on the object
itself, i.e. how it implements iteration). This opens a new browser 'level'.</p>

<h3>enterattr (Shift-E)</h3>
<p>Enter the attribute under the cursor.</p>

<h3>detail (D)</h3>
<p>Show a detail view of the object under the cursor. This shows the name,
type, doc string and value of the object attributes (and it might show more
attributes than in the list view, depending on the object).</p>

<h3>detailattr (Shift-D)</h3>
<p>Show a detail view of the attribute under the cursor.</p>

<h3>pickrows (M)</h3>
<p>Pick multiple selected rows (M)</p>

<h3>pickrowsattr (CTRL-M)</h3>
<p>From multiple selected rows pick the cells matching the attribute the cursor is in (CTRL-M)</p>

<h3>find (CTRL-F)</h3>
<p>Find text</p>

<h3>find_expression (CTRL-Shift-F)</h3>
<p>Find entries matching an expression</p>

<h3>find_next (F3)</h3>
<p>Find next occurrence</p>

<h3>find_previous (Shift-F3)</h3>
<p>Find previous occurrence</p>

<h3>sortattrasc (V)</h3>
<p>Sort the objects (in ascending order) using the attribute under the cursor as the sort key.</p>

<h3>sortattrdesc (Shift-V)</h3>
<p>Sort the objects (in descending order) using the attribute under the cursor as the sort key.</p>

<h3>refresh_once (R, F5)</h3>
<p>Refreshes the display by restarting the iterator</p>

<h3>refresh_every_second</h3>
<p>Refreshes the display by restarting the iterator every second until stopped by stop_refresh.</p>

<h3>refresh_interval</h3>
<p>Refreshes the display by restarting the iterator every X ms (X is a custom interval set by the user) until stopped by stop_refresh.</p>

<h3>stop_refresh</h3>
<p>Stops all refresh timers.</p>

<h3>leave (Backspace, DEL, X)</h3>
<p>Close current tab (and all the tabs to the right of the current one).</h3>

<h3>quit (ESC,Q)</h3>
<p>Quit igrid and return to the IPython prompt.</p>


<h2>Navigation</h2>


<h3>Jump to the last column of the current row (END, CTRL-E, CTRL-Right)</h3>

<h3>Jump to the first column of the current row (HOME, CTRL-A, CTRL-Left)</h3>

<h3>Move the cursor one column to the left (&lt;)</h3>

<h3>Move the cursor one column to the right (&gt;)</h3>

<h3>Jump to the first row in the current column (CTRL-Up)</h3>

<h3>Jump to the last row in the current column (CTRL-Down)</h3>

</body>
</html>

s   IGridRendererc           B   s;   t  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   s5   
    This is a custom renderer for our IGridGrid
    c      
   C   s’   d |  _ | |  _ d d d f d d d f d d d f d d d f d d d f d d d f d d d f d d d f f |  _ t i i i |  ƒ d  S(   NiÈ   i    i®   i@   (   s   selfs   maxcharss   tables   colormaps   wxs   grids   PyGridCellRenderers   __init__(   s   selfs   table(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   __init__‰   s    		ic         C   s   yH |  i i | i |  i i | ƒ } t i | d |  i	 ƒ \ } } } Wn6 t j
 o* } t i | d |  i	 ƒ \ } } } n X| | f Sd  S(   Ns   cell(   s   selfs   tables   _displayattrss   cols   values   itemss   rows   ipipes   xformats   maxcharss   aligns   widths   texts	   Exceptions   exc(   s   selfs   rows   cols   excs   texts   aligns   values   width(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys	   _getvalue™   s    #%&c   
      C   s}   | i | | ƒ } |  i | | ƒ \ } } | i	 | i ƒ  ƒ | i t | ƒ ƒ \ } }	 t i t | d d ƒ |	 d ƒ Sd  S(   Ni   iX  (   s   grids   GetCellValues   rows   cols   texts   selfs	   _getvalues   aligns   dcs   SetFonts   attrs   GetFonts   GetTextExtents   strs   ws   hs   wxs   Sizes   min(
   s   selfs   grids   attrs   dcs   rows   cols   texts   aligns   ws   h(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   GetBestSize¡   s
    c         C   sN  | i | | ƒ } |  i | | ƒ \ } } | o | i	 ƒ  } n d d d d f g | d } | i | ƒ | i t i | t i ƒ ƒ | i t i ƒ | i | i ƒ  ƒ | i | ƒ | i | ƒ | d j oÄ | i t | ƒ ƒ \ } }	 | d d } | d d | d |	 } x)| D]r \ }
 } | o | i! ƒ  } n |  i# |
 i" } | i$ | ƒ | i | ƒ \ } } | i' | | | ƒ | | 7} qWn¬| d j oÐ | i t | ƒ ƒ \ } }	 | d d | d | } | d d | d |	 } xL| D]r \ }
 } | o | i! ƒ  } n |  i# |
 i" } | i$ | ƒ | i | ƒ \ } } | i' | | | ƒ | | 7} qøWnÏ | i t | ƒ ƒ \ } }	 | d | d d } | d d | d |	 } x€ t( | ƒ D]r \ }
 } | i | ƒ \ } } | | 8} | o | i! ƒ  } n |  i# |
 i" } | i$ | ƒ | i' | | | ƒ qÊW| i) ƒ  d	 S(
   sO   
        Takes care of drawing everything in the cell; aligns the text
        s   whiteið   i   iÿÿÿÿi    i   f0.5i   N(*   s   grids   GetCellValues   rows   cols   texts   selfs	   _getvalues   aligns
   isSelecteds   GetSelectionBackgrounds   bgs   dcs   SetTextBackgrounds   SetBrushs   wxs   Brushs   SOLIDs   SetPens   TRANSPARENT_PENs   SetFonts   attrs   GetFonts   DrawRectangleRects   rects   SetClippingRects   GetTextExtents   strs   widths   heights   xs   ys   styles   parts   GetSelectionForegrounds   fgs   colormaps   SetTextForegrounds   ws   hs   DrawTexts   reverseds   DestroyClippingRegion(   s   selfs   grids   attrs   dcs   rects   rows   cols
   isSelecteds   texts   heights   styles   widths   bgs   parts   fgs   hs   aligns   ws   ys   x(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   Draw¨   sf        
c         C   s   t  |  i ƒ Sd  S(   N(   s   IGridRenderers   selfs   table(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   Cloneã   s    (   s   __name__s
   __module__s   __doc__s   __init__s	   _getvalues   GetBestSizes   Draws   Clone(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   IGridRenderer…   s    				;s
   IGridTablec           B   st   t  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d	 „  Z
 d
 „  Z d „  Z d „  Z RS(   Nc         G   sË   t  i i i |  ƒ | |  _ t i | ƒ |  _ g  |  _	 g  i
 } | D] } | t i | ƒ ƒ qE ~ |  _ |  i |  _ t |  i ƒ |  _ | |  _ |  i d ƒ t  i ƒ  |  _ |  i i t  i |  i ƒ d  S(   Ni   (   s   wxs   grids   PyGridTableBases   __init__s   selfs   inputs   ipipes   xiters   iterators   itemss   appends   _[1]s   attrss   attrs   upgradexattrs   _displayattrss   sets   _displayattrsets   fontsizes   _fetchs   Timers   timers   Binds	   EVT_TIMERs   refresh_content(   s   selfs   inputs   fontsizes   attrss   attrs   _[1](    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   __init__î   s    		3	c         G   sB   t  i i ƒ  } | i t  i |  i t  i t  i	 t  i	 ƒ ƒ | Sd  S(   N(
   s   wxs   grids   GridCellAttrs   attrs   SetFonts   Fonts   selfs   fontsizes   TELETYPEs   NORMAL(   s   selfs   argss   attr(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   GetAttrû   s    +c         C   s   t  |  i ƒ Sd  S(   N(   s   lens   selfs   items(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   GetNumberRows   s    c         C   s   t  |  i ƒ Sd  S(   N(   s   lens   selfs   _displayattrs(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   GetNumberCols  s    c         C   s3   | t |  i ƒ j  o |  i | i ƒ  Sn d Sd  S(   Ns    (   s   cols   lens   selfs   _displayattrss   name(   s   selfs   col(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   GetColLabelValue  s    c         C   s   t  | ƒ Sd  S(   N(   s   strs   row(   s   selfs   row(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   GetRowLabelValue  s    c         C   s   t  Sd  S(   N(   s   False(   s   selfs   rows   col(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   IsEmptyCell  s    c         C   s€   |  i i | ƒ |  i oa x^ t i | ƒ D]I } t i | ƒ } | |  i	 j o$ |  i
 i | ƒ |  i	 i | ƒ q+ q+ Wn d  S(   N(   s   selfs   itemss   appends   items   attrss   ipipes   xattrss   attrs   upgradexattrs   _displayattrsets   _displayattrss   add(   s   selfs   items   attr(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   _append  s     c         C   sÒ   t  |  i ƒ } x¼ |  i t j	 o
 | | j  ož y |  i i ƒ  } Wnm t	 j
 o t |  _ Pq t
 t f j
 o
 ‚  q t j
 o* } | d 7} |  i | ƒ t |  _ Pq X| d 7} |  i | ƒ q Wd  S(   Ni   (   s   lens   selfs   itemss   haves   iterators   Nones   counts   nexts   items   StopIterations   KeyboardInterrupts
   SystemExits	   Exceptions   excs   _append(   s   selfs   counts   excs   items   have(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   _fetch  s"     	
	
c   	      C   sQ  t  } t |  i ƒ } t |  i ƒ } | | d j o |  i	 t
 j	 o |  i | d ƒ t } n t |  i ƒ } t |  i ƒ } | | j o? t i i |  t i i | | ƒ } |  i ƒ  i | ƒ t } n | | j o d Sn | | j o? t i i |  t i i | | ƒ } |  i ƒ  i | ƒ t } n | o |  i ƒ  i t  ƒ n d Sd  S(   Ni   i   s    (   s   Falses   sizing_neededs   lens   selfs   _displayattrss   had_colss   itemss   had_rowss   rows   iterators   Nones   _fetchs   Trues	   have_rowss	   have_colss   wxs   grids   GridTableMessages   GRIDTABLE_NOTIFY_ROWS_APPENDEDs   msgs   GetViews   ProcessTableMessages   GRIDTABLE_NOTIFY_COLS_APPENDEDs   AutoSizeColumns(	   s   selfs   rows   cols   had_rowss   sizing_neededs   had_colss	   have_colss   msgs	   have_rows(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   GetValue0  s*    !
"
"
c         C   s   d  S(   N(    (   s   selfs   rows   cols   value(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   SetValueJ  s    c         C   s8  t  i i |  t  i i d |  i ƒ  ƒ } |  i ƒ  i | ƒ t	 i
 |  i ƒ |  _ g  |  _ g  |  _ |  i d ƒ |  i o¼ t  i i |  t  i i d ƒ } |  i ƒ  i | ƒ |  i d d ƒ |  i d } |  i ƒ  i t ƒ |  i ƒ  i ƒ  } | i ƒ  } | i ƒ  } | i | ƒ | j o |  i ƒ  i | ƒ q4n d  S(   Ni    i   (   s   wxs   grids   GridTableMessages   selfs   GRIDTABLE_NOTIFY_ROWS_DELETEDs   GetNumberRowss   msgs   GetViews   ProcessTableMessages   ipipes   xiters   inputs   iterators   itemss   attrss   _fetchs   GRIDTABLE_NOTIFY_ROWS_APPENDEDs   GetValues   items   AutoSizeColumnss   Falses	   GetParents   panels   nbs   GetSelections   currents   GetPages
   set_footer(   s   selfs   events   items   nbs   currents   msgs   panel(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   refresh_contentM  s"    '		
(   s   __name__s
   __module__s   __init__s   GetAttrs   GetNumberRowss   GetNumberColss   GetColLabelValues   GetRowLabelValues   IsEmptyCells   _appends   _fetchs   GetValues   SetValues   refresh_content(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys
   IGridTableç   s   								
			s	   IGridGridc           B   s"  t  Z d „  Z d „  Z d „  Z d „  Z d „  Z e d „ Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z e e d „ Z e e e d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z  d „  Z! RS(   Nc         G   sN  t  i i i |  | ƒ d } | |  _ t |  i | | Œ |  _
 |  i |  i
 t ƒ |  i t  i i i ƒ |  i t |  i
 ƒ ƒ |  i t ƒ |  i t  i |  i ƒ |  i t  i i |  i ƒ |  i t  i i |  i ƒ |  i t  i i |  i ƒ |  i t  i i |  i ƒ |  i t  i i |  i ƒ |  i t  i i  |  i! ƒ t" ƒ  |  _# d |  _$ d  S(   Ni	   iÈ   (%   s   wxs   grids   Grids   __init__s   selfs   panels   fontsizes   inputs
   IGridTables   attrss   tables   SetTables   Trues   SetSelectionModes   wxGridSelectRowss   SetDefaultRenderers   IGridRenderers   EnableEditings   Falses   Binds   EVT_KEY_DOWNs   key_presseds   EVT_GRID_CELL_LEFT_DCLICKs   cell_doubleclickeds   EVT_GRID_CELL_LEFT_CLICKs   cell_leftclickeds   EVT_GRID_LABEL_LEFT_DCLICKs   label_doubleclickeds   EVT_GRID_LABEL_LEFT_CLICKs   on_label_leftclicks   EVT_GRID_RANGE_SELECTs   _on_selected_ranges   EVT_GRID_SELECT_CELLs   _on_selected_cells   sets   current_selections   maxchars(   s   selfs   panels   inputs   attrss   fontsize(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   __init__c  s"    	c         C   s   | i ƒ  d  S(   N(   s   events   Skip(   s   selfs   event(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   on_label_leftclickv  s    c         C   s9   t  i ƒ  |  i ƒ  i ƒ  i ƒ  } | i t | ƒ ƒ d  S(   N(   s   wxs   Bells   selfs	   GetParents   frames   SetStatusTexts   strs   text(   s   selfs   texts   frame(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   error_outputy  s    
c         C   s‚   | i ƒ  o- |  i i t | i ƒ  | i ƒ  d ƒ ƒ n; x7 t | i ƒ  | i ƒ  d ƒ D] } |  i i	 | ƒ qZ W| i
 ƒ  d  S(   Ni   (   s   events	   Selectings   selfs   current_selections   updates   xranges	   GetTopRows   GetBottomRows   indexs   discards   Skip(   s   selfs   events   index(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   _on_selected_range~  s    -  c         C   s&   t  | i ƒ  g ƒ |  _ | i ƒ  d  S(   N(   s   sets   events   GetRows   selfs   current_selections   Skip(   s   selfs   event(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   _on_selected_cell‰  s    c   
         sô   |  i ƒ  }	 |  i ƒ  } |  i i |	 } ‡  d †  } y1 t	 i
 t |  i i d | d | ƒƒ |  i _ Wn* t j
 o } |  i d | ƒ d Sn Xx[ t |  i i ƒ D]G \ } } | | j o. |  i | | ƒ |  i | | ƒ |  i ƒ  q¥ q¥ Wd S(   s‹   
        Sort the current list of items using the key function ``key``. If
        ``reverse`` is true the sort order is reversed.
        c            sG   y ˆ  |  ƒ SWn2 t t f j
 o
 ‚  n t j
 o t Sn Xd  S(   N(   s   keys   items   KeyboardInterrupts
   SystemExits	   Exceptions   None(   s   item(   s   key(    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   realkey—  s    s   keys   reverses   Exception encountered: %sN(   s   selfs   GetGridCursorRows   rows   GetGridCursorCols   cols   tables   itemss   curitems   realkeys   ipipes   deques   sorteds   reverses	   TypeErrors   excs   error_outputs	   enumerates   is   items   SetGridCursors   MakeCellVisibles   Refresh(
   s   selfs   keys   reverses   is   realkeys   items   curitems   excs   cols   row(    (   s   keysI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   sortŽ  s      1	 c            s   |  i ƒ  } |  i i | ‰  |  i ƒ  i ƒ  i ƒ  } ˆ  t i	 j o |  i
 d ƒ d Sn | i d ˆ  i ƒ  ƒ ‡  d †  } |  i | ƒ d S(   sT   
        Sort in ascending order; sorting criteria is the current attribute
        s   no column under cursorNs   sort by %s (ascending)c            sJ   y ˆ  i |  ƒ SWn2 t t f j
 o
 ‚  n t j
 o t Sn Xd  S(   N(   s   attrs   values   items   KeyboardInterrupts
   SystemExits	   Exceptions   None(   s   item(   s   attr(    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   keyµ  s    (   s   selfs   GetGridCursorCols   cols   tables   _displayattrss   attrs	   GetParents   frames   ipipes   noitems   error_outputs   SetStatusTexts   names   keys   sort(   s   selfs   attrs   frames   keys   col(    (   s   attrsI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   sortattrascª  s     c            s“   |  i ƒ  } |  i i | ‰  |  i ƒ  i ƒ  i ƒ  } ˆ  t i	 j o |  i
 d ƒ d Sn | i d ˆ  i ƒ  ƒ ‡  d †  } |  i | d t ƒd S(   sU   
        Sort in descending order; sorting criteria is the current attribute
        s   no column under cursorNs   sort by %s (descending)c            sJ   y ˆ  i |  ƒ SWn2 t t f j
 o
 ‚  n t j
 o t Sn Xd  S(   N(   s   attrs   values   items   KeyboardInterrupts
   SystemExits	   Exceptions   None(   s   item(   s   attr(    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   keyÉ  s    s   reverse(   s   selfs   GetGridCursorCols   cols   tables   _displayattrss   attrs	   GetParents   frames   ipipes   noitems   error_outputs   SetStatusTexts   names   keys   sorts   True(   s   selfs   attrs   frames   keys   col(    (   s   attrsI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   sortattrdesc¾  s     c         C   s:   | i ƒ  } | i ƒ  } | d j o |  i | ƒ n d  S(   Niÿÿÿÿ(   s   events   GetRows   rows   GetCols   cols   selfs   enter(   s   selfs   events   cols   row(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   label_doubleclickedÒ  s    c         C   s¡   yH |  i i | i |  i i | ƒ } t i | d |  i	 ƒ \ } } } WnN t j
 o t ‚ n7 t j
 o* } t i | d |  i	 ƒ \ } } } n X| Sd S(   sD   
        Gets the text which is displayed at ``(row, col)``
        s   cellN(   s   selfs   tables   _displayattrss   cols   values   itemss   rows   ipipes   xformats   maxcharss   aligns   widths   texts
   IndexErrors	   Exceptions   exc(   s   selfs   rows   cols   excs   texts   aligns   values   width(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys	   _getvalueØ  s     #%
&c   
      C   s€  |  i ƒ  i ƒ  i ƒ  } | o]| o+| o |  i ƒ  d }	 n | d }	 x)t oö yÎ |  i	 i
 |	 d ƒ } |  i	 i |	 } yT t i t ƒ } t | | t i | ƒ ƒ o% |  i |	 d ƒ |  i |	 d ƒ Pn WnN t t f j
 o
 ‚  n4 t j
 o' } | i t | ƒ ƒ t i ƒ  Pn XWn t j
 o d Sn X|	 d 7}	 qO Wq|| o |  i ƒ  d }	 n | d }	 xt oö yÎ |  i	 i
 |	 d ƒ } |  i	 i |	 } yT t i t ƒ } t | | t i | ƒ ƒ o% |  i |	 d ƒ |  i |	 d ƒ Pn WnN t t f j
 o
 ‚  n4 t j
 o' } | i t | ƒ ƒ t i ƒ  Pn XWn t j
 o d Sn X|	 d 8}	 qzWn d S(   s$   
        Find by expression
        i   i    N(   s   selfs	   GetParents   frames	   searchexps   search_forwards   startrows   GetGridCursorRows   rows   Trues   tables   GetValues   foos   itemss   items   ipipes
   getglobalss   Nones   globalss   evals   AttrNamespaces   SetGridCursors   MakeCellVisibles   KeyboardInterrupts
   SystemExits	   Exceptions   excs   SetStatusTexts   strs   wxs   Bells
   IndexError(
   s   selfs	   searchexps   startrows   search_forwards   excs   items   globalss   foos   frames   row(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   searchexpressionå  sd     
 	

	
 	

	c   	      C   s„  | i ƒ  } | o3| t j	 o
 | t j	 o
 | } nD |  i ƒ  d } |  i	 ƒ  } | |  i
 ƒ  j o d } | d 7} n xt o½ x¦ t | |  i i
 ƒ  ƒ D]Œ } yl |  i i | | ƒ } |  i | | ƒ } | | i ƒ  i ƒ  j o( |  i | | ƒ |  i | | ƒ d Sn Wq t j
 o d Sq Xq Wd } | d 7} q} Wn;| t j	 o
 | t j	 o
 | } nH |  i ƒ  d } |  i	 ƒ  } | d j  o |  i
 ƒ  d } | d 8} n xÌ t oÄ x  t | d d ƒ D]Œ } yl |  i i | | ƒ } |  i | | ƒ } | | i ƒ  i ƒ  j o( |  i | | ƒ |  i | | ƒ d Sn WqÎt j
 o d SqÎXqÎW|  i i
 ƒ  d } | d 8} q´Wd S(   s“   
        search for ``searchtext``, starting in ``(startrow, startcol)``;
        if ``search_forward`` is true the direction is "forward"
        i   i    Niÿÿÿÿ(   s
   searchtexts   lowers   search_forwards   startrows   Nones   startcols   rows   selfs   GetGridCursorCols   GetGridCursorRows   GetNumberColss   Trues   xranges   tables   cols   GetValues   foos	   _getvalues   texts   strings   SetGridCursors   MakeCellVisibles
   IndexError(	   s   selfs
   searchtexts   startrows   startcols   search_forwards   texts   foos   cols   row(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   search  s^     
  
  c         C   s¸  |  i ƒ  i ƒ  i ƒ  }
 |
 i d ƒ | i ƒ  } | i ƒ  } | i	 ƒ  } | t d ƒ j oD |  i ƒ  } | o  |  i ƒ  } |  i | | ƒ q´|  i | ƒ n| t d ƒ j oJ | o) |  i ƒ  } |  i t |  i ƒ | ƒ q´|  i t |  i ƒ ƒ n¸| t i t i t d ƒ f j o | p | o |  i ƒ  ny| t d ƒ t d ƒ f j oD |  i ƒ  } | o  |  i ƒ  } |  i | | ƒ q´|  i | ƒ n| t d ƒ j o | o* |  i ƒ  } |  i | |  i ƒ  d ƒ nÒ| t i j p | t d ƒ j o | o  |  i ƒ  } |  i | d	 ƒ nˆ| t d
 ƒ j o | oz |  i ƒ  } |  i i  | } g  }	 xD t# |  i$ ƒ  ƒ D]0 } |	 i& |  i i  | i' |  i i( | ƒ ƒ q|W|  i) |	 ƒ nô| t i* t d ƒ f j o | p | o |  i) ƒ  n»| t d ƒ j o’ |  i ƒ  } |  i ƒ  } | i ƒ  o3 | d } | d	 j o |  i | | d ƒ q›q´| d } | |  i ƒ  j  o |  i | | d ƒ q´n| t d ƒ j oH |  i ƒ  } |  i ƒ  } | o |  i, | | ƒ q´|  i- | | ƒ n»| t d ƒ j o | o) | o |
 i. | ƒ q´|
 i/ | ƒ nx| t i0 j o) | o |
 i1 | ƒ q´|
 i2 | ƒ n?| t d ƒ j o# | o |  i3 ƒ  q´|  i4 ƒ  n	| t i5 j oe |  i ƒ  } y |  i i( | d } Wn# t7 j
 o |  i i( | } n X|  i8 | ƒ | i9 ƒ  n”| t i: j o\ |  i ƒ  } | d j o |  i i( | d } n |  i i( | } |  i8 | ƒ | i9 ƒ  n(| t i; j o7 |  i ƒ  } |  i i( | } |  i8 | ƒ | i9 ƒ  ná | t i< j o7 |  i ƒ  } |  i i( | } |  i8 | ƒ | i9 ƒ  nš | t d ƒ j p | t i= j o |  i i> | ƒ nc | t d ƒ j oE |  i ƒ  } | o |  i? | ƒ q´|  i ƒ  } |  i@ | | ƒ n | i9 ƒ  d S(   s0   
        Maps pressed keys to functions
        s    s   Ps   Ms   Xs   Es   i   s   Ai    s   Cs   Qs   <s   Ds   Fs   Vs   Rs   IN(A   s   selfs	   GetParents   frames   SetStatusTexts   events	   ShiftDowns   shs   ControlDowns   ctrls
   GetKeyCodes   keycodes   ords   GetGridCursorRows   rows   GetGridCursorCols   cols   pickattrs   picks   pickrowsattrs   sorteds   current_selections   pickrowss   wxs   WXK_BACKs
   WXK_DELETEs   delete_current_notebooks	   enterattrs   enters   SetGridCursors   GetNumberColss   WXK_HOMEs   tables   _displayattrss   attrs   results   xranges   GetNumberRowss   is   appends   values   itemss   quits
   WXK_ESCAPEs   newcols   details   detail_attrs   enter_searchexpressions   enter_searchtexts   WXK_F3s   find_previouss	   find_nexts   sortattrdescs   sortattrascs   WXK_DOWNs   items
   IndexErrors
   set_footers   Skips   WXK_UPs	   WXK_RIGHTs   WXK_LEFTs   WXK_F5s   refresh_contents	   pickinputs   pickinputattr(   s   selfs   events   attrs   ctrls   is   cols   items   newcols   shs   results   frames   keycodes   row(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   key_pressedP  sÎ     1* .+

#c         C   s£   |  i ƒ  } | i ƒ  } | i ƒ  } | i ƒ  } | d j oI x/ t | d | d d ƒ D] } | i
 | ƒ qX W| i ƒ  i i ƒ  n | i ƒ  } | i d ƒ d S(   s2   
        deletes the current notebook tab
        i   iÿÿÿÿs   This is the last level!N(   s   selfs	   GetParents   panels   nbs   GetSelections   currents   GetPageCounts   counts   xranges   is
   DeletePages   GetCurrentPages   grids   SetFocuss   frames   SetStatusText(   s   selfs   counts   is   currents   frames   nbs   panel(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   delete_current_notebookÆ  s      c         G   s9  |  i ƒ  }
 |
 i ƒ  } | i ƒ  }	 | i ƒ  } | i ƒ  } yˆ | d | j o | |  i
 j	 o |	 i | | Œ nP | |  i
 j o? x+ t | d | d ƒ D] } | i | ƒ q› W|	 i | ƒ n Wnn t j
 ob } | i i d j o d | i i | f } n  d | i i | i i | f } |	 i | ƒ n Xd S(   sH   
        "enter" a special item resulting in a new notebook tab
        i   iÿÿÿÿs
   exceptionss   %s: %ss	   %s.%s: %sN(   s   selfs	   GetParents   panels   nbs   frames   GetSelections   currents   GetPageCounts   counts   values   inputs   _add_notebooks   attrss   xranges   is
   DeletePages	   TypeErrors   excs	   __class__s
   __module__s   __name__s   msgs   SetStatusText(   s   selfs   values   attrss   counts   excs   is   nbs   currents   msgs   frames   panel(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   _doenterÖ  s&     ! c         C   si   y- |  i i | } | i |  i i | ƒ } Wn( t j
 o } |  i
 t | ƒ ƒ n X|  i | ƒ d  S(   N(   s   selfs   tables   _displayattrss   cols   attrs   values   itemss   rows	   Exceptions   excs   error_outputs   strs   _doenter(   s   selfs   rows   cols   attrs   values   exc(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys	   enterattrí  s    c         C   su   |  i ƒ  i ƒ  i ƒ  } | i d i g  i } t i | d d ƒ d D] \ } } | t | ƒ ƒ qE ~ ƒ d ƒ d  S(   Ns    s   footeri   i   i    (   s   selfs	   GetParents   frames   SetStatusTexts   joins   appends   _[1]s   ipipes   xformats   items   styles   texts   str(   s   selfs   items   styles   texts   _[1]s   frame(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys
   set_footerö  s    c         C   sP   y |  i i | } Wn( t j
 o } |  i t | ƒ ƒ n X|  i	 | ƒ d  S(   N(
   s   selfs   tables   itemss   rows   values	   Exceptions   excs   error_outputs   strs   _doenter(   s   selfs   rows   excs   value(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   enterú  s
    c         C   sŸ   y$ |  i i | } |  i i | } Wn( t j
 o } |  i
 t | ƒ ƒ nN Xg  i } t i | d ƒ D] } | t i | | ƒ ƒ qi ~ } |  i | ƒ d S(   s9   
        shows a detail-view of the current cell
        s   detailN(   s   selfs   tables   _displayattrss   cols   attrs   itemss   rows   items	   Exceptions   excs   error_outputs   strs   appends   _[1]s   ipipes   xattrss   AttributeDetails   attrss   _doenter(   s   selfs   rows   cols   attrs   _[1]s   items   attrss   exc(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   detail  s     ?c         C   s¨   y- |  i i | } | i |  i i | ƒ } Wn( t	 j
 o } |  i t | ƒ ƒ nN Xg  i } t i | d ƒ D] } | t i | | ƒ ƒ qr ~ } |  i | ƒ d  S(   Ns   detail(   s   selfs   tables   _displayattrss   cols   attrs   values   itemss   rows   items	   Exceptions   excs   error_outputs   strs   appends   _[1]s   ipipes   xattrss   AttributeDetails   attrss   _doenter(   s   selfs   rows   cols   attrs   _[1]s   items   attrss   exc(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   detail_attr  s    ?c         C   sn   |  i ƒ  i ƒ  i ƒ  } | i o | i i ƒ  n | i } | t j	 o | | _ n | i	 ƒ  | i ƒ  d S(   s   
        quit
        N(
   s   selfs	   GetParents   frames
   helpdialogs   Destroys   parents   apps   Nones   results   Close(   s   selfs   results   apps   frame(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   quit  s     
	
c         C   s*   |  i | i ƒ  | i ƒ  ƒ | i ƒ  d  S(   N(   s   selfs	   enterattrs   events   GetRows   GetCols   Skip(   s   selfs   event(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   cell_doubleclicked&  s    c         C   s7   | i ƒ  } |  i i | } |  i | ƒ | i ƒ  d  S(   N(	   s   events   GetRows   rows   selfs   tables   itemss   items
   set_footers   Skip(   s   selfs   events   items   row(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   cell_leftclicked*  s    c         C   sP   y |  i i | } Wn( t j
 o } |  i t | ƒ ƒ n X|  i	 | ƒ d S(   sD   
        pick a single row and return to the IPython prompt
        N(
   s   selfs   tables   itemss   rows   values	   Exceptions   excs   error_outputs   strs   quit(   s   selfs   rows   excs   value(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   pick0  s     c         C   so   y |  i i | } Wn( t j
 o } |  i t | ƒ ƒ n. Xt	 i
 ƒ  } | i t | ƒ ƒ |  i | ƒ d  S(   N(   s   selfs   tables   itemss   rows   values	   Exceptions   excs   error_outputs   strs   ipapis   gets   apis   set_next_inputs   quit(   s   selfs   rows   excs   values   api(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys	   pickinput;  s    c         C   sˆ   y- |  i i | } | i |  i i | ƒ } Wn( t j
 o } |  i
 t | ƒ ƒ n. Xt i ƒ  } | i t | ƒ ƒ |  i | ƒ d  S(   N(   s   selfs   tables   _displayattrss   cols   attrs   values   itemss   rows	   Exceptions   excs   error_outputs   strs   ipapis   gets   apis   set_next_inputs   quit(   s   selfs   rows   cols   attrs   values   apis   exc(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   pickinputattrE  s    c         C   sq   y5 g  i  } | D] } | |  i i | ƒ q ~ } Wn( t j
 o } |  i
 t | ƒ ƒ n X|  i | ƒ d S(   sE   
        pick multiple rows and return to the IPython prompt
        N(   s   appends   _[1]s   rowss   rows   selfs   tables   itemss   values	   Exceptions   excs   error_outputs   strs   quit(   s   selfs   rowss   excs   values   _[1]s   row(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   pickrowsP  s     5c         C   s¿   g  } y} |  i i | } xf | D]^ } y$ | i | i	 |  i i
 | ƒ ƒ Wq  t t f j
 o
 ‚  q  t j
 o
 ‚  q  Xq  WWn( t j
 o } |  i t | ƒ ƒ n X|  i | ƒ d S(   s5   "
        pick one column from multiple rows
        N(   s   valuess   selfs   tables   _displayattrss   cols   attrs   rowss   rows   appends   values   itemss
   SystemExits   KeyboardInterrupts	   Exceptions   excs   error_outputs   strs   quit(   s   selfs   rowss   cols   attrs   valuess   excs   row(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   pickrowsattr[  s      $c         C   si   y- |  i i | } | i |  i i | ƒ } Wn( t j
 o } |  i
 t | ƒ ƒ n X|  i | ƒ d  S(   N(   s   selfs   tables   _displayattrss   cols   attrs   values   itemss   rows	   Exceptions   excs   error_outputs   strs   quit(   s   selfs   rows   cols   attrs   values   exc(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   pickattrn  s    ("   s   __name__s
   __module__s   __init__s   on_label_leftclicks   error_outputs   _on_selected_ranges   _on_selected_cells   Falses   sorts   sortattrascs   sortattrdescs   label_doubleclickeds	   _getvalues   Nones   Trues   searchexpressions   searchs   key_presseds   delete_current_notebooks   _doenters	   enterattrs
   set_footers   enters   details   detail_attrs   quits   cell_doubleclickeds   cell_leftclickeds   picks	   pickinputs   pickinputattrs   pickrowss   pickrowsattrs   pickattr(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys	   IGridGrid`  s:   									83	v								
				
			s
   IGridPanelc           B   s   t  Z d „  Z RS(   Nc         G   s¡   t  i i |  | d ƒ t |  | | Œ |  _ |  i i	 ƒ  t  i
 t  i ƒ } | i |  i d d d t  i t  i Bd d ƒ|  i | ƒ | i |  ƒ | i |  ƒ d  S(   Niÿÿÿÿs
   proportioni   s   flags   borderi
   (   s   wxs   Panels   __init__s   selfs   parents	   IGridGrids   inputs   attrss   grids	   FitInsides   BoxSizers   VERTICALs   sizers   Adds   EXPANDs   ALLs   SetSizers   Fits   SetSizeHints(   s   selfs   parents   inputs   attrss   sizer(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   __init__z  s    ,(   s   __name__s
   __module__s   __init__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys
   IGridPanelx  s   s   IGridHTMLHelpc           B   s   t  Z d „  Z RS(   Nc         C   s`   t  i i |  | d | d | ƒt  i i |  ƒ } d t  i	 j o | i
 ƒ  n | i t ƒ d  S(   Niÿÿÿÿs   sizes   gtk2(   s   wxs   Frames   __init__s   selfs   parents   titles   sizes   htmls
   HtmlWindows   PlatformInfos   SetStandardFontss   SetPages   help(   s   selfs   parents   titles   sizes   html(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   __init__†  s
    (   s   __name__s
   __module__s   __init__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   IGridHTMLHelp…  s   s
   IGridFramec           B   sž   t  Z d Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d	 „  Z
 d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   Ni   c         C   s  d i  g  i } t i | d d ƒ d D] \ } } | t | ƒ ƒ q' ~ ƒ } t
 i i |  t d | d d d f ƒt
 i ƒ  |  _ d	 |  _ t
 i ƒ  |  _ t
 i ƒ  |  _ t
 i ƒ  |  _ t
 i ƒ  |  _ t
 i |  d
 d d ƒ|  _ |  i d t
 i ƒ |  _ |  i i d ƒ |  i d
 d g ƒ | |  _ |  i | ƒ |  i  t
 i! |  i" ƒ |  i# |  i d d |  i$ ƒ |  i# |  i d d |  i% ƒ |  i# |  i d d |  i& ƒ |  i# |  i d d |  i' ƒ |  i# |  i d d |  i( ƒ |  i# |  i d d |  i) ƒ |  i# |  i d d |  i* ƒ |  i# |  i d d |  i+ ƒ |  i# |  i d d  |  i, ƒ |  i# |  i d! d" |  i- ƒ |  i# |  i d# d$ |  i. ƒ |  i i/ |  i d% ƒ |  i i/ |  i d& ƒ |  i i/ |  i d' ƒ |  i i/ |  i d( ƒ |  i0 |  i ƒ d) |  _1 d) |  _2 t |  _3 d* |  _- |  i4 d+ d ƒ d  S(,   Ns    s   headeri   i   s   titles   sizei€  ià  id   iÿÿÿÿs   stylei    i   iÈ   s   &Sort (asc)	Vs   Sort ascendings   Sort (&desc)	Shift-Vs   Sort descendings   &Help	F1s   Helps   &Find text	CTRL-Fs	   Find texts    Find by &expression	CTRL-Shift-Fs   Find by expressions   Find &next	F3s	   Find nexts   Find &previous	Shift-F3s   Find previouss   &Refresh once 	F5s   Refresh onces   Refresh every &1ss   Refresh every seconds   Refresh every &X secondss   Refresh every X secondss   &Stop all refresh timerss   Stop refresh timerss   &Finds   &Sorts   &Refreshs   &Helps    iè  s   Refreshing inactive(5   s   joins   appends   _[1]s   ipipes   xformats   inputs   styles   texts   strs   titles   wxs   Frames   __init__s   selfs   Nones   MenuBars   menubars   menucounters   Menus   m_helps   m_searchs   m_sorts	   m_refreshs   Notebooks   notebooks   CreateStatusBars   ST_SIZEGRIPs	   statusbars   SetFieldsCounts   SetStatusWidthss   parents   _add_notebooks   Binds	   EVT_CLOSEs   OnCloseWindows   makemenus   sortascs   sortdescs   display_helps   enter_searchtexts   enter_searchexpressions	   find_nexts   find_previouss   refresh_onces   refresh_every_seconds   refresh_intervals   stop_refreshs   Appends
   SetMenuBars
   searchtexts   searchexpressions
   helpdialogs   SetStatusText(   s   selfs   parents   inputs   styles   titles   texts   _[1](    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   __init__‘  sH    O%						c         C   s2   |  i i |  i i ƒ  ƒ i i } | i | ƒ d  S(   N(   s   selfs   notebooks   GetPages   GetSelections   grids   tables   refresh_contents   event(   s   selfs   events   table(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   refresh_once¸  s    !c         C   sõ   |  i i |  i i ƒ  ƒ i i } t i |  d d d t |  i	 ƒ ƒ} | i ƒ  t i j oŒ y t | i ƒ  ƒ } Wn( t j
 o } |  i t | ƒ ƒ qç X| i i d | d t ƒ |  i d | ƒ |  i d | d ƒ | |  _	 n | i ƒ  d  S(	   Ns&   Enter refresh interval (milliseconds):s   Refresh timer:s   defaultValues   millisecondss   oneShots   Refresh timer set to %s mss   Refresh interval: %s msi   (   s   selfs   notebooks   GetPages   GetSelections   grids   tables   wxs   TextEntryDialogs   strs   refresh_intervals   dlgs	   ShowModals   ID_OKs   ints   GetValues   millisecondss
   ValueErrors   excs   SetStatusTexts   timers   Starts   Falses   Destroy(   s   selfs   events   dlgs   excs   tables   milliseconds(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   refresh_interval¼  s    !$c         C   sY   xR t  |  i i ƒ  ƒ D]; } |  i i | ƒ } | i i i	 i
 ƒ  |  i d d ƒ q Wd  S(   Ns   Refreshing inactivei   (   s   xranges   selfs   notebooks   GetPageCounts   is   GetPages   nbs   grids   tables   timers   Stops   SetStatusText(   s   selfs   events   is   nb(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   stop_refreshË  s
     c         C   sN   |  i i |  i i ƒ  ƒ i i } | i i d d d t ƒ |  i	 d d ƒ d  S(   Ns   millisecondsiè  s   oneShots   Refresh interval: 1000 msi   (
   s   selfs   notebooks   GetPages   GetSelections   grids   tables   timers   Starts   Falses   SetStatusText(   s   selfs   events   table(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   refresh_every_secondÑ  s    !c         C   s,   |  i i |  i i ƒ  ƒ i } | i ƒ  d  S(   N(   s   selfs   notebooks   GetPages   GetSelections   grids   sortattrasc(   s   selfs   events   grid(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   sortascÖ  s    c         C   s,   |  i i |  i i ƒ  ƒ i } | i ƒ  d  S(   N(   s   selfs   notebooks   GetPages   GetSelections   grids   sortattrdesc(   s   selfs   events   grid(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   sortdescÚ  s    c         C   s  |  i i |  i i ƒ  ƒ i } |  i oŒ | i ƒ  } | i ƒ  } |  i
 d |  i ƒ | d d j o! | i |  i | | d t ƒ q	| i |  i | d | i i ƒ  d t ƒ nV |  i o> |  i
 d t |  i ƒ d d !ƒ | i d |  i d t ƒ n |  i
 d	 ƒ d
 S(   s+   
        find previous occurrences
        s!   Search mode: text; looking for %si   i    s'   Search mode: expression; looking for %si   iÿÿÿÿs	   searchexps   search_forwards6   No search yet: please enter search-text or -expressionN(   s   selfs   notebooks   GetPages   GetSelections   grids
   searchtexts   GetGridCursorRows   rows   GetGridCursorCols   cols   SetStatusTexts   searchs   Falses   tables   GetNumberColss   searchexpressions   repr(   s   selfs   events   grids   cols   row(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   find_previousÞ  s     
!.
!c         C   s	  |  i i |  i i ƒ  ƒ i } |  i d j o‚ | i ƒ  } | i ƒ  } |  i
 d |  i ƒ | d | i i ƒ  j  o | i |  i | | d ƒ q| i |  i | d d ƒ nV |  i d j o8 |  i
 d t |  i ƒ d d !ƒ | i d |  i ƒ n |  i
 d	 ƒ d
 S(   s*   
        find the next occurrence
        s    s!   Search mode: text; looking for %si   i    s'   Search mode: expression; looking for %si   iÿÿÿÿs	   searchexps6   No search yet: please enter search-text or -expressionN(   s   selfs   notebooks   GetPages   GetSelections   grids
   searchtexts   GetGridCursorRows   rows   GetGridCursorCols   cols   SetStatusTexts   tables   GetNumberColss   searchs   searchexpressions   repr(   s   selfs   events   grids   cols   row(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys	   find_nextñ  s     !c         C   sS   |  i o |  i i ƒ  n t t d d d t i d d ƒ ƒ|  _ |  i i ƒ  d S(   s'   
        Display a help dialog
        s   titles   Helps   sizeiX  i  N(   s   selfs
   helpdialogs   Destroys   IGridHTMLHelps   Nones   wxs   Sizes   Show(   s   selfs   event(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   display_help  s
     
'c         C   sr   t  i t i i t i i t i i t ƒ d ƒ ƒ ƒ } | i	 d ƒ o d | } n t
 i | d d d t ƒd S(   sy   
        Show the help-HTML in a browser (as a ``HtmlWindow`` does not understand
        CSS this looks better)
        s   igrid_help.htmls   files   file:s   newi   s	   autoraiseN(   s   urllibs   pathname2urls   oss   paths   abspaths   joins   dirnames   __file__s   filenames
   startswiths
   webbrowsers   opens   True(   s   selfs   events   filename(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   display_help_in_browser  s
     6c         C   s§   t  i |  d d d |  i ƒ} | i ƒ  t  i j oe | i ƒ  |  _ d |  _ |  i	 d t
 |  i ƒ d d !ƒ |  i i |  i i ƒ  ƒ i i |  i ƒ n | i ƒ  d  S(   Ns   Find:s   Find matching expression:s   defaultValues    s'   Search mode: expression; looking for %si   iÿÿÿÿ(   s   wxs   TextEntryDialogs   selfs   searchexpressions   dlgs	   ShowModals   ID_OKs   GetValues
   searchtexts   SetStatusTexts   reprs   notebooks   GetPages   GetSelections   grids   Destroy(   s   selfs   events   dlg(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   enter_searchexpression  s    	!,c         C   sE   | i |  i | | ƒ |  i t i | d |  i ƒ|  i d 7_ d  S(   Ns   idi   (
   s   menus   Appends   selfs   menucounters   labels   helps   Binds   wxs   EVT_MENUs   cmd(   s   selfs   menus   labels   helps   cmd(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   makemenu   s    c         G   sœ   t  |  i | | Œ } t t i | d |  i	 ƒ d ƒ } t | ƒ |  i	 j o | |  i	  i d ƒ d } n |  i i | | t ƒ | i i ƒ  |  i ƒ  d  S(   Ns   headeri   s   .s   ...(   s
   IGridPanels   selfs   notebooks   inputs   attrss   panels   strs   ipipes   xformats   maxtitlelens   texts   lens   rstrips   AddPages   Trues   grids   SetFocuss   Layout(   s   selfs   inputs   attrss   texts   panel(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   _add_notebook%  s    "c         C   s   |  i ƒ  d  S(   N(   s   selfs   Destroy(   s   selfs   event(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   OnCloseWindow/  s    c         C   sš   t  i |  d d d |  i ƒ} | i ƒ  t  i j oX | i ƒ  |  _ d |  _ |  i	 d |  i ƒ |  i
 i |  i
 i ƒ  ƒ i i |  i ƒ n | i ƒ  d  S(   Ns   Find:s   Find in lists   defaultValues    s!   Search mode: text; looking for %s(   s   wxs   TextEntryDialogs   selfs
   searchtexts   dlgs	   ShowModals   ID_OKs   GetValues   searchexpressions   SetStatusTexts   notebooks   GetPages   GetSelections   grids   searchs   Destroy(   s   selfs   events   dlg(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   enter_searchtext2  s    	,(   s   __name__s
   __module__s   maxtitlelens   __init__s   refresh_onces   refresh_intervals   stop_refreshs   refresh_every_seconds   sortascs   sortdescs   find_previouss	   find_nexts   display_helps   display_help_in_browsers   enter_searchexpressions   makemenus   _add_notebooks   OnCloseWindows   enter_searchtext(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys
   IGridFrameŽ  s"   	'											
				
	s   Appc           B   s   t  Z d „  Z d „  Z RS(   Nc         C   s&   | |  _  t |  _ t i i |  ƒ d  S(   N(   s   inputs   selfs   Nones   results   wxs   Apps   __init__(   s   selfs   input(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   __init__>  s    		c         C   s;   t  |  |  i ƒ } | i ƒ  |  i | ƒ | i ƒ  t Sd  S(   N(   s
   IGridFrames   selfs   inputs   frames   Shows   SetTopWindows   Raises   True(   s   selfs   frame(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   OnInitC  s
    

(   s   __name__s
   __module__s   __init__s   OnInit(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   App=  s   	c           B   s:   t  Z d  Z e i d d f j  o d „  Z n
 d „  Z RS(   s™   
    This is a wx-based display object that can be used instead of ``ibrowse``
    (which is curses-based) or ``idump`` (which simply does a print).
    i   i   c         C   sg   y* t  t |  i ƒ } | i ƒ  | i ƒ  Wn6 t i j
 o' t	 |  i ƒ } | i ƒ  | i Sn Xd  S(   N(   s
   IGridFrames   Nones   selfs   inputs   frames   Shows   Raises   wxs   PyNoAppErrors   Apps   apps   MainLoops   result(   s   selfs   apps   frame(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   displayR  s    

c         C   s$   t  |  i ƒ } | i ƒ  | i Sd  S(   N(   s   Apps   selfs   inputs   apps   MainLoops   result(   s   selfs   app(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   displayb  s    
(   s   __name__s
   __module__s   __doc__s   wxs   VERSIONs   display(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   igridK  s    (   s   ipipes   oss
   webbrowsers   urllibs   IPythons   ipapis   wxs   wx.grids   wx.htmls   sorteds	   NameErrors   sets   setss   Sets   __all__s   helps   grids   PyGridCellRenderers   IGridRenderers   PyGridTableBases
   IGridTables   Grids	   IGridGrids   Panels
   IGridPanels   Frames   IGridHTMLHelps
   IGridFrames   Apps   Displays   igrid(   s   igrids   sets   helps   __all__s   ipapis   IGridHTMLHelps   IGridRenderers   urllibs
   IGridTables
   webbrowsers	   IGridGrids
   IGridFrames
   IGridPanels   ipipes   sorteds   oss   Apps   wx(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/igrid.pys   ?   s.   $		pbyÿ ÿ 	¯