ywangd
Aug 12, 2015 - 11:44
Following simple UI code does not function properly in current beta build 160024. The will_close method is not called when closing the UI (i.e. tap the cross button). This bug seems only exists in panel UI. If the UI is presented as sheet or popover, the method is trigger properly. Also the code works fine with v1.5.
import ui
class TestUI (ui.View):
def __init__(self):
self.flex = 'wh'
def will_close(self):
print 'closing' # will NOT print!
v = TestUI()
v.present('panel')