New question #240548 on Sikuli:
https://answers.launchpad.net/sikuli/+question/240548
What I want now is:
display a multi-lines message of settings and then ask user whether continue or
not.
I know popup(text[, title]) can display a dialog box with OK button, but it
seems that it can't
Question #240548 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240548
Status: Open = Answered
RaiMan proposed the following answer:
The Java feature behind popup and input is JOptionPane.
To use it in Python:
import javax.swing.JOptionPane as JO
def myInput (title,
Question #240548 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240548
RaiMan proposed the following answer:
... again as real Python ;-)
def myInput (title, msg):
ret = JO.showConfirmDialog(null, msg, title, JO.YES_NO_OPTION)
if ret == JO.CLOSED_OPTION or ret ==
Question #240548 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240548
Status: Answered = Solved
Parn Yin confirmed that the question is solved:
Thank you my mentor RaiMan! Works!
as real Python :)
null in the code above should be replaced by None.
--
You received this
4 matches
Mail list logo