Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 08:00, 3 May 2008.

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 Discussions
Thread Thread Starter Forum Replies Last Post
3510 Bug ssacl05 General Browsing 0 2003-03-26 17:31
Make a directory mikebukhin Python 3 2007-03-29 13:32
Problems with a python wrapper: convert PyObject to Image pdcb_pdcb Python 1 2008-03-11 05:32
Problems with a python wrapper: convert PyObject to Image pdcb_pdcb Python 6 2008-03-21 22:57
Launching a Python script (with arguments) from Flash? bouvin Python 14 2006-08-22 18:33
 
Powered by MediaWiki