Changeset 339

Show
Ignore:
Timestamp:
06/21/08 01:15:03 (4 years ago)
Author:
simon
Message:

Floats. Center slides.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • hodgestar/Talks/PythonObjects/pyobjects.py

    r337 r339  
    6262        return result + '</head>\n<body>\n' 
    6363 
     64class MySlide(Slide): 
     65    _Slide = Slide 
     66    def toHTML(self): 
     67        html = self._Slide.toHTML(self) 
     68        return "<div style='margin: auto; width: 50%;'>" + html + "</div>" 
     69 
     70Slide = MySlide 
    6471 
    6572l = MyLecture( 
     
    8390            (<type 'type'>, <class '__main__.New'>) 
    8491            """)), 
     92    ), 
     93    Slide("Gambolling With Slots", 
    8594    ), 
    8695    Slide("Strings", 
     
    169178        """)), 
    170179    ), 
    171     Slide("Gamboling With Slots", 
     180    Slide("Floats", 
     181        Bullet("Like ints in 2.6, only in 3.0 as well."), 
     182        Bullet("You won't get your memory back."), 
     183        Bullet("Maybe we could remove this, run some tests and submit a patch (checking bug tracker first, of course)?"), 
     184        Bullet("Perhaps just use numpy?"), 
    172185    ), 
    173186    Slide("PyObject C API",