Forum Archive

UI lesson

Prgmr1996

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

dgelessus

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

Is your file named 'My UI.pyui' when you look at it in the file browser?

Prgmr1996

File browser? How do I use that?

polymerchm

The parallel lines in the upper left hand corner.

ccc

Does ui.load_view().present('sheet') work? That is, remove the text from the first ().

Prgmr1996

Ok, I've figured out how it works now. Thanks guys.