File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2222a .plot (t ,s )
2323
2424sw = Gtk .ScrolledWindow ()
25- win .add (sw )
25+ win .add (sw )
2626# A scrolled window border goes outside the scrollbars and viewport
27- sw .set_border_width (10 )
27+ sw .set_border_width (10 )
2828
2929canvas = FigureCanvas (f ) # a Gtk.DrawingArea
3030canvas .set_size_request (800 ,600 )
31- sw .add_with_viewport (canvas )
31+ sw .add_with_viewport (canvas )
3232
3333win .show_all ()
3434Gtk .main ()
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ def runcode(self):
141141 self .ready .release ()
142142 return True
143143
144- def kill (self ):
144+ def kill (self ):
145145 """Kill the thread, returning when it has been shut down."""
146146 self .ready .acquire ()
147147 self ._kill = True
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ class GTKInterpreterConsole(gtk.ScrolledWindow):
147147
148148 def __init__ (self ):
149149 gtk .ScrolledWindow .__init__ (self )
150- self .set_policy (gtk .POLICY_AUTOMATIC ,gtk .POLICY_AUTOMATIC )
150+ self .set_policy (gtk .POLICY_AUTOMATIC ,gtk .POLICY_AUTOMATIC )
151151
152152 self .text = gtk .TextView ()
153153 self .text .set_wrap_mode (True )
You can’t perform that action at this time.
0 commit comments