Update applications/randomuser/randomuser.ring - Use a class (RandomUser)
@@ -7,6 +7,10 @@ load "internetlib.ring"
load "jsonlib.ring"
load "guilib.ring"
+new RandomUser
+
+class RandomUser
+
oApp = new QApp {
styleFusionBlack()
@@ -17,7 +21,7 @@ oApp = new QApp {
oPhotoLabel = new QLabel(win) {
move(100,100)
}
- getUserData()
+ this.getUserData()
show()
}
exec()
