You Are Here:

Community: Wiki

This page was last modified on 18 September 2009, at 19:40.

Python Hildon Widgets - Part 2

From Forum Nokia Wiki

hildon.Note

Notes are used to ask a confirmation (Ok/Cancel/etc.) from the user. The following code shows a confirmation note and changes the button label based on user's response.

A hildon.Note

def button_callback(widget, button, window):
  dialog = hildon.Note ("confirmation", (window, "Are you sure?", gtk.STOCK_DIALOG_WARNING) )
  dialog.set_button_texts ("Yes", "No")
  response = dialog.run()
  dialog.destroy()

  if response == gtk.RESPONSE_OK:
      button.set_label("Confirmed")
  else:
      button.set_label("Canceled")

hildon.SetPasswordDialog

Dialog used to receive a new password from user.

A hildon.SetPasswordDialog

def button_callback(widget, button, window):
  passwordDialog = hildon.SetPasswordDialog(window, False)
  response = passwordDialog.run()
  passwordDialog.hide()       
  passwordDialog.destroy()

hildon.TimePicker

It is a dialog popup widget which lets the user set a time.

A hildon.SetPassworDialog

def button_callback(widget, button, window):
  time_picker = hildon.TimePicker(window)
  response = time_picker.run()
  time_picker.hide()

Related Wiki Articles

No related wiki articles found

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fHowE5ftoE5fcreateE5faE5fmp3E5fplayerE5finE5fMaemoX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZmaemoQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qfnZuserE5ftagQSxmaemoX qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ
RDF Facets: qfnZuserE5FtagQSxgtkX qfnZuserE5FtagQSxhildonX qfnZuserE5FtagQSxinternetX qfnZuserE5FtagQSxlinuE78X qfnZuserE5FtagQSxmaemoX