robertiii
Apr 22, 2020 - 18:57
I found this code somewhere on the internet heehee.
def menuButton(sender):
pv = ui.View()
pv.name = 'popover'
pv.frame = (0,0,200,200)
x = sender.x + sender.width/2
y = sender.superview.titlebar_height + sender.y + sender.height/2
pv.present('popover',popover_location = (x,y))
However this doesn’t work with navbar buttons as they don’t have the location information. How can I get the location info?
