Hi I'm new here. I'm trying to create a UI interface for the "tap me" example pythonistia documentation. When I try to run the code though it says "value error: UI file not found" when I run this line of code [ui.load_view('My UI').present('sheet')]. I can't figure out how to fix it. Please help.
Thanks
Forum Archive
UI lesson
Prgmr1996
Jan 23, 2015 - 06:31
dgelessus
Jan 23, 2015 - 00:20
If your UI file is named something other than "My UI" you need to change that in the load_view call as well. Or simply pass no parameters to the function and it will load the UI file with the same name as your script.
smath
Jan 23, 2015 - 00:22
Is your file named 'My UI.pyui' when you look at it in the file browser?
Prgmr1996
Jan 23, 2015 - 03:03
File browser? How do I use that?
polymerchm
Jan 23, 2015 - 03:33
The parallel lines in the upper left hand corner.
ccc
Jan 23, 2015 - 04:52
Does ui.load_view().present('sheet') work? That is, remove the text from the first ().
Prgmr1996
Jan 23, 2015 - 06:31
Ok, I've figured out how it works now. Thanks guys.