| Reply | « Previous Thread | Next Thread » |
|
Alert in PyS60 is not an object like J2ME, instead it is a function (appuifw.note). So is there any way to add commands with actions for the alert? And can we show a new screen after an alert?
|
|
Join Date: Oct 2007
Posts: 2,845
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
Could you please explain what you mean by "commands with actions for the alert"?
As for showing a new screen, of course. After the alert is shown, just display something new, like a new image on the canvas. Is that what you meant? |
|
Join Date: Feb 2008
Posts: 2,546
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
sorry but really not getting your question if you want to do anything after that alert function you can have it in your code i suppose but it will be better if you explain your question in bit detail. Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
Alert (appuifw.note()) comes without any command, its been shown for few seconds and then disappear. Can we make it FOREVER (like J2ME) and add commands there, and based on those command certain action can be taken.
|
|
Hi shail229,
AFAI Understand your problem, do you need a popup menu? Example is here, http://www.mobilenin.com/pys60/ex_popup_menu.htm IDEAS is all they need but still they think only Genius can give them that. |
| shubhendra |
| View Public Profile |
| Find all posts by shubhendra |
|
No, I don't need pop-up menu. Let me explain this problem from scratch. Suppose I have a form with a command "Ok", when I press "Ok", it does some calculation and based on the result, it shows an alert (appuifw.note()) with some message(Say "Do you want to continue?"). Now I want to put two commands on that alert (Say "Yes" and "No") and if press "Yes" it should go to a new screen and if press "No" it should stay back to the same screen.
So my intension is to use alert as a confirmation dialog (Like Alert in J2ME), is that possible in PyS60? |
|
try this
Code:
if appuifw.query(u"Do you want to continue?","query")==True:
print u"you pressed ok"
else:
print u"you pressed cancel"
|
|
Thanks Versoul,
I suppose this will solve my problem for the time being. Just interested to know, can we change the label of the commands "Ok" and "Cancel" which are coming by default? Lets say can me make them "Yes" and "No". |
|
On how many I know it it is impossible.
|
|
Thanks, not a problem.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Video playback with sound but nothing on Screen | abdullah829 | Mobile Java Media (Graphics & Sounds) | 5 | 2007-11-30 15:04 |
| MIDP : Show only 2 commands to a screen without “options” menu | suzier | Mobile Java General | 2 | 2006-08-08 23:54 |
| Direct Screen Access (Please Comment!) | earamsey | General Symbian C++ | 1 | 2006-07-28 19:34 |
| 6600 - CAknPopupFieldText does not show up on screen | louiethenose | Symbian User Interface | 4 | 2004-11-10 04:44 |
| my splash screen didn't show up! | zerglim | General Symbian C++ | 1 | 2004-08-05 10:28 |