Changeset 2960
- Timestamp:
- 01/19/08 15:52:11 (11 months ago)
- Files:
-
- ipython/trunk/IPython/Extensions/astyle.py (modified) (1 diff)
- ipython/trunk/IPython/Extensions/ibrowse.py (modified) (2 diffs)
- ipython/trunk/IPython/Extensions/igrid.py (modified) (1 diff)
- ipython/trunk/IPython/Extensions/ipipe.py (modified) (4 diffs)
- ipython/trunk/doc/ChangeLog (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ipython/trunk/IPython/Extensions/astyle.py
r1929 r2960 267 267 for info in self: 268 268 yield info 269 try: 270 ipipe.xrepr.when_type(Text)(xrepr_astyle_text) 271 except Exception: 272 pass 269 ipipe.xrepr.when_type(Text)(xrepr_astyle_text) 273 270 274 271 ipython/trunk/IPython/Extensions/ibrowse.py
r2958 r2960 797 797 keymap.register("refreshfind", "R") 798 798 799 def __init__(self, input=None, attrs=None):799 def __init__(self, input=None, *attrs): 800 800 """ 801 801 Create a new browser. If ``attrs`` is not empty, it is the list … … 803 803 these will be determined by the objects on screen. 804 804 """ 805 self.input = input 806 807 if attrs is None: 808 attrs = () 805 ipipe.Display.__init__(self, input) 806 809 807 self.attrs = attrs 810 808 ipython/trunk/IPython/Extensions/igrid.py
r2958 r2960 1103 1103 """ 1104 1104 1105 def __init__(self, input=None):1106 self.input = input1107 1108 1105 if wx.VERSION < (2, 7): 1109 1106 def display(self): 1110 1107 try: 1111 # Try to create a "standalone" fr om. If this works we're probably1108 # Try to create a "standalone" frame. If this works we're probably 1112 1109 # running with -wthread. 1113 1110 # Note that this sets the parent of the frame to None, but we can't ipython/trunk/IPython/Extensions/ipipe.py
r2689 r2960 130 130 genutils = None 131 131 ipapi = None 132 133 import astyle134 132 135 133 … … 1933 1931 return input | self() 1934 1932 1933 def __init__(self, input=None): 1934 self.input = input 1935 1935 1936 def __ror__(self, input): 1936 1937 self.input = input … … 2070 2071 2071 2072 2073 2074 import astyle 2075 2072 2076 class idump(Display): 2073 2077 # The approximate maximum length of a column entry … … 2077 2081 style_header = astyle.Style.fromstr("white:black:bold") 2078 2082 2079 def __init__(self, *attrs): 2083 def __init__(self, input=None, *attrs): 2084 Display.__init__(self, input) 2080 2085 self.attrs = [upgradexattr(attr) for attr in attrs] 2081 2086 self.headerpadchar = " " ipython/trunk/doc/ChangeLog
r2959 r2960 1 1 2008-01-19 Walter Doerwald <walter@livinglogic.de> 2 2 3 * IPython/Extensions/ibrowse.py, IPython/Extensions/igrid.py:4 The input object can now be passed to the constructor of ibrowse/igrid.3 * ibrowse.py, igrid.py, ipipe.py: 4 The input object can now be passed to the constructor of the display classes. 5 5 This makes it possible to use them with objects that implement __or__. 6 6 * ipipe.py: Importing astyle.py is done as late as possible to 7 avoid problems with circular imports. 8 7 9 2008-01-19 Ville Vainio <vivainio@gmail.com> 8 10
