Exemplo n.º 1
0
 def run(self):
     if debug:
         time.sleep(5)
     try:
         self.hardware = smolt.Hardware()
         try:
             smolt.getPubUUID()
             self.emit(SIGNAL('smoltPageStatus(PyQt_PyObject)'), True)
         except:
             self.emit(SIGNAL('smoltPageStatus(PyQt_PyObject)'), False)
         self.emit(SIGNAL('profile_ready()'))
     except smolt.SystemBusError, e:
         self.error_message = e.msg
         self.emit(SIGNAL('system_bus_error()'))
Exemplo n.º 2
0
	def run(self):
		if debug:
			time.sleep(5)
		try:
			self.hardware = smolt.Hardware()
			try:
				smolt.getPubUUID()
				self.emit(SIGNAL('smoltPageStatus(PyQt_PyObject)'), True)
			except:
				self.emit(SIGNAL('smoltPageStatus(PyQt_PyObject)'), False)
			self.emit(SIGNAL('profile_ready()'))
		except smolt.SystemBusError, e:
			self.error_message = e.message
			self.emit(SIGNAL('system_bus_error()'))
Exemplo n.º 3
0
    def on_submission_completed(self):
        url = smolt.get_profile_link(smolt.smoonURL, smolt.getPubUUID())
        window = self.builder.get_object('window_main')
        message = ('<b>Your profile was sent successfully!</b>\n'
                   'Your profile is available at <a href="%(url)s">this</a> link.\n'
                   'Your profile admin password is:\n'
                   '<i>%(password)s</i>' % {'url':url, 'password':self.admin})

        dialog = gtk.MessageDialog(window,
                    gtk.DIALOG_DESTROY_WITH_PARENT,
                    gtk.MESSAGE_INFO,
                    gtk.BUTTONS_CLOSE, message)
        dialog.set_property('use-markup', True)
        dialog.run()
        dialog.destroy()
Exemplo n.º 4
0
	def openSmoltPage(self):
 
		''' Open My Smolt Page '''
		url = smolt.get_profile_link(smolt.smoonURL, smolt.getPubUUID())
		QDesktopServices.openUrl(QUrl(url))
Exemplo n.º 5
0
 def on_action_mypage_activate(self, widget, data=None):
     url = smolt.get_profile_link(smolt.smoonURL, smolt.getPubUUID())
     webbrowser.open(url)
Exemplo n.º 6
0
	def openSmoltPage(self):
		global server_url

		''' Open My Smolt Page '''
		url = smolt.get_profile_link(server_url, smolt.getPubUUID())
		QDesktopServices.openUrl(QUrl(url))
Exemplo n.º 7
0
 def openSmoltPage(self):
     global server_url
     ''' Open My Smolt Page '''
     url = smolt.get_profile_link(server_url, smolt.getPubUUID())
     QDesktopServices.openUrl(QUrl(url))