You Are Here:

Community: Developer Discussion Boards

#1 Old Can we show a new screen after an alert - 2008-06-25, 08:04

Join Date: Jan 2008
Posts: 27
Location: Gurgaon, India
shail229's Avatar
shail229
Offline
Registered User
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?
Reply With Quote

#2 Old Re: Can we show a new screen after an alert - 2008-06-25, 08:07

Join Date: Oct 2007
Posts: 2,845
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
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?
Reply With Quote

#3 Old Re: Can we show a new screen after an alert - 2008-06-25, 08:15

Join Date: Feb 2008
Posts: 2,546
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by shail229 View Post
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?
hi shail229
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
Reply With Quote

#4 Old Re: Can we show a new screen after an alert - 2008-06-25, 08:30

Join Date: Jan 2008
Posts: 27
Location: Gurgaon, India
shail229's Avatar
shail229
Offline
Registered User
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.
Reply With Quote

#5 Old Re: Can we show a new screen after an alert - 2008-06-25, 09:12

Join Date: Dec 2007
Posts: 409
Location: Tempe, AZ
Send a message via Yahoo to shubhendra Send a message via Skype™ to shubhendra
shubhendra's Avatar
shubhendra
Offline
Forum Nokia Champion
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.
Reply With Quote

#6 Old Re: Can we show a new screen after an alert - 2008-06-25, 10:39

Join Date: Jan 2008
Posts: 27
Location: Gurgaon, India
shail229's Avatar
shail229
Offline
Registered User
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?
Reply With Quote

#7 Old Re: Can we show a new screen after an alert - 2008-06-25, 11:17

Join Date: Feb 2008
Posts: 25
Location: Moscow Russia
Send a message via ICQ to Versoul Send a message via Skype™ to Versoul
Versoul
Offline
Registered User
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"
Reply With Quote

#8 Old Re: Can we show a new screen after an alert - 2008-06-25, 13:35

Join Date: Jan 2008
Posts: 27
Location: Gurgaon, India
shail229's Avatar
shail229
Offline
Registered User
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".
Reply With Quote

#9 Old Re: Can we show a new screen after an alert - 2008-06-25, 13:48

Join Date: Feb 2008
Posts: 25
Location: Moscow Russia
Send a message via ICQ to Versoul Send a message via Skype™ to Versoul
Versoul
Offline
Registered User
On how many I know it it is impossible.
Reply With Quote

#10 Old Re: Can we show a new screen after an alert - 2008-06-25, 13:58

Join Date: Jan 2008
Posts: 27
Location: Gurgaon, India
shail229's Avatar
shail229
Offline
Registered User
Thanks, not a problem.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia