Skip to content

Commit

Permalink
replace tabs with spaces, thanks to stefan schwarzer for this one
Browse files Browse the repository at this point in the history
git-svn-id: https://pyjamas.svn.sourceforge.net/svnroot/pyjamas/trunk@832 7a2bd370-bda8-463c-979e-2900ccfb811e
  • Loading branch information
lkcl committed Jul 8, 2009
1 parent fbef638 commit 18e8788
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/gridtest/GridTest.py
Expand Up @@ -37,7 +37,7 @@ def __init__(self):
self.add(self.g)

def onClick(self, sender):
print sender
print sender
if sender==self.addb:
self.page+=1
elif sender==self.subb:
Expand Down
4 changes: 3 additions & 1 deletion pygtkweb/001-gpython.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python

import __builtin__
import __main__
import codeop
Expand All @@ -10,6 +11,7 @@
import traceback
import signal
import sys

if sys.version[0] == '2':
import pygtk
pygtk.require("2.0")
Expand Down Expand Up @@ -173,7 +175,7 @@ def signal_handler (*args):

try:
while 1:
command = raw_input (prompt) + '\n' # raw_input strips newlines
command = raw_input (prompt) + '\n' # raw_input strips newlines
prompt = interpreter.feed (command) and '>>> ' or '... '
except (EOFError, KeyboardInterrupt): pass

Expand Down
4 changes: 2 additions & 2 deletions pygtkweb/035-notebook.py
Expand Up @@ -16,9 +16,9 @@ def tabsborder_book(self, button, notebook):
tval = False
bval = False
if self.show_tabs == False:
tval = True
tval = True
if self.show_border == False:
bval = True
bval = True

notebook.set_show_tabs(tval)
self.show_tabs = tval
Expand Down
4 changes: 2 additions & 2 deletions pygtkweb/038-menu.py
Expand Up @@ -35,8 +35,8 @@ def __init__(self):
# ...and add it to the menu.
menu.append(menu_items)

# Do something interesting when the menuitem is selected
menu_items.connect("activate", self.menuitem_response, buf)
# Do something interesting when the menuitem is selected
menu_items.connect("activate", self.menuitem_response, buf)

# Show the widget
menu_items.show()
Expand Down
4 changes: 2 additions & 2 deletions pygtkweb/042-testtext.py
Expand Up @@ -55,9 +55,9 @@ def hsv_to_rgb(h, s, v):
ihue = int(hue)
if ihue == 0:
return(value, t, p)
elif ihue == 1:
elif ihue == 1:
return(q, value, p)
elif ihue == 2:
elif ihue == 2:
return(p, value, t)
elif ihue == 3:
return(p, q, value)
Expand Down
2 changes: 1 addition & 1 deletion pygtkweb/046-cellrenderer.py
Expand Up @@ -33,7 +33,7 @@ def destroy_cb(self, *kw):
def run(self):
""" run is called to set off the GTK mainloop """
gtk.main()
return
return

class InfoModel:
""" The model class holds the information we want to display """
Expand Down

0 comments on commit 18e8788

Please sign in to comment.