import npyscreen
rpm = 6000
global stats
stats = {}
stats["rpm"] = rpm
#!/usr/bin/env python
# encoding: utf-8
class TestApp(npyscreen.NPSApp):
def main(self):
F = npyscreen.Form(name = "GTS 0.0.3",)
t = F.add(npyscreen.TitleText, name = "rpm:",value = rpm)
t.value = stats["rpm"]
F.edit()
if __name__ == "__main__":
App = TestApp()
App.run()