89
90
91
92
93
94
95
96
97
pub fn popup(&mut self, x: i32, y: i32) -> (String, i32) {
self.win.show();
self.win.force_position(true);
self.win.set_pos(x, y);
while self.win.shown() {
app::wait();
}
(self.val.borrow().to_string(), *self.idx.borrow())
}