Ejemplo n.º 1
0
	def goto_listen_page (self):
		self.listen_selections_label.set_markup(
			self.listen_selections_text(
				self.current_category,
				self.current_artwork,
				self.wTree.get_widget("visitors_checkbutton").get_active(),
				self.wTree.get_widget("artists_checkbutton").get_active(),
				self.wTree.get_widget("curators_checkbutton").get_active(),
				self.wTree.get_widget("educators_checkbutton").get_active(),
				))
		self.report_number_of_voices(webservice.invoke("number_of_recordings", [self.get_request()]))
		self.sub_notebook.set_current_page(LISTEN_PAGE)
Ejemplo n.º 2
0
def get_current_version_from_server ():
	return webservice.invoke("current_version")
Ejemplo n.º 3
0
LIST_PADDING = 10

HILDON_HARDKEY_UP         = gtk.keysyms.Up
HILDON_HARDKEY_LEFT       = gtk.keysyms.Left
HILDON_HARDKEY_RIGHT      = gtk.keysyms.Right
HILDON_HARDKEY_DOWN       = gtk.keysyms.Down
HILDON_HARDKEY_SELECT     = gtk.keysyms.Return
HILDON_HARDKEY_HOME       = gtk.keysyms.F5
HILDON_HARDKEY_ESC        = gtk.keysyms.Escape
HILDON_HARDKEY_FULLSCREEN = gtk.keysyms.F6
HILDON_HARDKEY_INCREASE   = gtk.keysyms.F7
HILDON_HARDKEY_DECREASE   = gtk.keysyms.F8
HILDON_HARDKEY_MENU       = gtk.keysyms.F10

PROJECT = "PAUSEPLAY"
categories = webservice.invoke("get_categories", [{ "project_name" : PROJECT }])
demographics = webservice.invoke("get_demographics", [{ "project_name" : PROJECT }])

class RoundClient:
	def main (self):
		gtk.main()

	def delete_event(self, widget, event, data=None):
		return False

	def destroy(self, widget, data=None):
		gtk.main_quit()

	def __init__ (self):
		# Glade
		self.wTree = gtk.glade.XML(os.path.join(SHARE_DIR, GLADE_FILE), "round")