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 22
22
a .plot (t ,s )
23
23
24
24
sw = Gtk .ScrolledWindow ()
25
- win .add (sw )
25
+ win .add (sw )
26
26
# A scrolled window border goes outside the scrollbars and viewport
27
- sw .set_border_width (10 )
27
+ sw .set_border_width (10 )
28
28
29
29
canvas = FigureCanvas (f ) # a Gtk.DrawingArea
30
30
canvas .set_size_request (800 ,600 )
31
- sw .add_with_viewport (canvas )
31
+ sw .add_with_viewport (canvas )
32
32
33
33
win .show_all ()
34
34
Gtk .main ()
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ def runcode(self):
141
141
self .ready .release ()
142
142
return True
143
143
144
- def kill (self ):
144
+ def kill (self ):
145
145
"""Kill the thread, returning when it has been shut down."""
146
146
self .ready .acquire ()
147
147
self ._kill = True
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ class GTKInterpreterConsole(gtk.ScrolledWindow):
147
147
148
148
def __init__ (self ):
149
149
gtk .ScrolledWindow .__init__ (self )
150
- self .set_policy (gtk .POLICY_AUTOMATIC ,gtk .POLICY_AUTOMATIC )
150
+ self .set_policy (gtk .POLICY_AUTOMATIC ,gtk .POLICY_AUTOMATIC )
151
151
152
152
self .text = gtk .TextView ()
153
153
self .text .set_wrap_mode (True )
You can’t perform that action at this time.
0 commit comments