Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion EXAMPLE-WIDGETLIST.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def main(self):

if __name__ == "__main__":
App = TestApp()
print App.run()
print(App.run())
2 changes: 1 addition & 1 deletion TESTING-Action.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def main(self):
# This lets the user play with the Form.
F.edit()

print ms.get_selected_objects()
print(ms.get_selected_objects())

if __name__ == "__main__":
App = TestApp()
Expand Down
2 changes: 1 addition & 1 deletion TESTING-NewTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ def main(self):
App = TestApp()
App.run()
for v in RETURN:
print v
print(v)
2 changes: 1 addition & 1 deletion TESTING-Tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ def main(self):
App = TestApp()
App.run()
for v in RETURN:
print v
print(v)
2 changes: 1 addition & 1 deletion TESTING-TreeMultiLineBox.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ def main(self):
App = TestApp()
App.run()
for v in RETURN:
print v
print(v)
2 changes: 1 addition & 1 deletion Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ def onStart(self):

if __name__ == '__main__':
TestApp = MyApplication().run()
print "All objects, baby."
print("All objects, baby.")

2 changes: 1 addition & 1 deletion TestWidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def main(*args):
for m in members:
name, cl = m
if isinstance(m, npyscreen.Form):
print "True"
print("True")



Expand Down
2 changes: 1 addition & 1 deletion detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
#print os.isatty(0)


print sys.stdin.isatty(), os.environ.get("TERM", None)
print(sys.stdin.isatty(), os.environ.get("TERM", None))

2 changes: 1 addition & 1 deletion mousetesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ def mainloop(scr):

if __name__ == "__main__":
locale.setlocale(locale.LC_ALL, '')
print curses.wrapper(mainloop)
print(curses.wrapper(mainloop))

2 changes: 1 addition & 1 deletion tests/ActionFormTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ def testme(sa):
if __name__ == '__main__':
import curses
curses.wrapper(testme)
print "No Luke, I am your father"
print("No Luke, I am your father")
2 changes: 1 addition & 1 deletion tests/buttonTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ def testme(sa):
if __name__ == '__main__':
import curses.wrapper
curses.wrapper(testme)
print "Join me, and we will end this destructive conflict"
print("Join me, and we will end this destructive conflict")
2 changes: 1 addition & 1 deletion tests/checkboxtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ def testme(sa):
if __name__ == '__main__':
import curses.wrapper
curses.wrapper(testme)
print "Use the force"
print("Use the force")
70 changes: 35 additions & 35 deletions tests/oldtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def testme(sa):
if __name__ == '__main__':
import curses.wrapper
curses.wrapper(testme)
print "Use the force"
print("Use the force")


## DateCombo
Expand All @@ -29,8 +29,8 @@ def testing(src):
if __name__ == '__main__':
import curses
r = curses.wrapper(testing)
print r
print "Your faith in your friends is yours"
print(r)
print("Your faith in your friends is yours")

## EditMultiLine

Expand All @@ -50,7 +50,7 @@ def testme(sa):
if __name__ == '__main__':
import safewrapper
safewrapper.wrapper(testme)
print "Your powers are weak, old man"
print("Your powers are weak, old man")

## Form

Expand Down Expand Up @@ -93,7 +93,7 @@ def testme(sa):

if __name__ == '__main__':
curses.wrapper(testme)
print "No Luke, I am your father"
print("No Luke, I am your father")

## FormControlCheckBox

Expand Down Expand Up @@ -125,7 +125,7 @@ def testme(w):
if __name__ == '__main__':
import curses
curses.wrapper(testme)
print "No Luke, I am your father"
print("No Luke, I am your father")

## FormWithMenus

Expand All @@ -146,7 +146,7 @@ def doNothing():

F.add(titlefield.TitleText, name='Test')
F.edit()
print "I have you now"
print("I have you now")


if __name__ == '__main__':
Expand Down Expand Up @@ -177,8 +177,8 @@ def testme(sa):

if __name__ == '__main__':
import curses.wrapper
print curses.wrapper(testme)
print "No, I'll never join you"
print(curses.wrapper(testme))
print("No, I'll never join you")

## GridColTitles

Expand All @@ -203,8 +203,8 @@ def testme(sa):

if __name__ == '__main__':
import curses.wrapper
print curses.wrapper(testme)
print "No, I'll never join you"
print(curses.wrapper(testme))
print("No, I'll never join you")

## Menu

Expand Down Expand Up @@ -240,7 +240,7 @@ def quicktest(scr):
import curses
import curses.wrapper
curses.wrapper(quicktest)
print "The circle is now complete"
print("The circle is now complete")

## Multiline

Expand Down Expand Up @@ -268,8 +268,8 @@ def testme(sa):

if __name__ == '__main__':
import curses.wrapper
print curses.wrapper(testme)
print "No, I'll never join you"
print(curses.wrapper(testme))
print("No, I'll never join you")


## MultiLineTree
Expand Down Expand Up @@ -304,8 +304,8 @@ def testme(sa):
w.edit()

import curses.wrapper
print curses.wrapper(testme)
print "No, I'll never join you"
print(curses.wrapper(testme))
print("No, I'll never join you")


## MultiSelect
Expand All @@ -324,8 +324,8 @@ def simpletest(screen):

if __name__ == "__main__":
import curses.wrapper
print curses.wrapper(simpletest)
print "The circle is now complete"
print(curses.wrapper(simpletest))
print("The circle is now complete")


## MultiSelectTree
Expand Down Expand Up @@ -356,8 +356,8 @@ def testme(sa):
w.edit()

import curses.wrapper
print curses.wrapper(testme)
print "No, I'll never join you"
print(curses.wrapper(testme))
print("No, I'll never join you")


## NewMenuDisplay
Expand Down Expand Up @@ -397,8 +397,8 @@ def doNothing():
if __name__ == '__main__':
import curses
q = curses.wrapper(main)
print q
print "Now I am the Master"
print(q)
print("Now I am the Master")


## NPSApplication
Expand All @@ -408,7 +408,7 @@ def doNothing():
App = NPSApp(); App.run()
App = NPSApp(); App.run()

print "A Jedi, who was a pupil of mine..."
print("A Jedi, who was a pupil of mine...")

## NPSAppManaged

Expand Down Expand Up @@ -454,8 +454,8 @@ def Test1():
gc1 = n1.newChild(content = "GrandChild1")
n2 = Tree.newChild(content = "newChild2")
for item in Tree.walkTree():
print '->' * item.findDepth(), item.getContent()
print Tree.getTreeAsList()
print('->' * item.findDepth(), item.getContent())
print(Tree.getTreeAsList())

Test1()

Expand All @@ -471,7 +471,7 @@ def testloop(sa):
import curses.wrapper
import screen_area
curses.wrapper(testloop)
print "When I wrote you, I had much to learn"
print("When I wrote you, I had much to learn")

## Popup

Expand Down Expand Up @@ -512,7 +512,7 @@ def test_loop(screen):

if __name__ == '__main__':
curses.wrapper(test_loop)
print "The circle is now complete"
print("The circle is now complete")



Expand All @@ -530,7 +530,7 @@ def testme(sa):
if __name__ == '__main__':
import curses.wrapper
curses.wrapper(testme)
print "Only now...do you see the truth"
print("Only now...do you see the truth")


## Textbox
Expand Down Expand Up @@ -573,8 +573,8 @@ def unicodetest(screen):
import locale
import safewrapper
safewrapper.wrapper(unicodetest)
print locale.getlocale()[1]
print "The circle is now complete"
print(locale.getlocale()[1])
print("The circle is now complete")


## Textbox_ControlChars
Expand All @@ -592,7 +592,7 @@ def simpletest(screen):

if __name__ == "__main__":
curses.wrapper(simpletest)
print "The circle is now complete"
print("The circle is now complete")

## titlefield

Expand Down Expand Up @@ -622,7 +622,7 @@ def cleartest(screen):
if __name__ == '__main__':
import curses.wrapper
curses.wrapper(cleartest)
print "The circle is now complete"
print("The circle is now complete")


## widget
Expand All @@ -636,6 +636,6 @@ def simpletest(scr):

if __name__ == "__main__":
import safewrapper
print safewrapper.wrapper(simpletest)
print locale.getlocale()[1]
print "The circle is now complete"
print(safewrapper.wrapper(simpletest))
print(locale.getlocale()[1])
print("The circle is now complete")