Working on smoother animations
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@214 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -128,17 +128,15 @@ class MokoWindow(gtk.Window):
|
|||||||
if self.predecessor == None:
|
if self.predecessor == None:
|
||||||
gtk.main_quit()
|
gtk.main_quit()
|
||||||
else:
|
else:
|
||||||
|
self.predecessor.show_all()
|
||||||
self.hide()
|
self.hide()
|
||||||
self.predecessor.show()
|
|
||||||
# raise NotImplementedError("Please implement this method in a subclass")
|
|
||||||
|
|
||||||
def btnForward_clicked(self, widget, data=None):
|
def btnForward_clicked(self, widget, data=None):
|
||||||
if self.successor == None:
|
if self.successor == None:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
self.hide()
|
|
||||||
self.successor.show_all()
|
self.successor.show_all()
|
||||||
# raise NotImplementedError("Please implement this method in a subclass")
|
self.hide()
|
||||||
|
|
||||||
class CertificateDescriptionWindow(MokoWindow):
|
class CertificateDescriptionWindow(MokoWindow):
|
||||||
|
|
||||||
@@ -274,9 +272,9 @@ class CVCWindow(MokoWindow):
|
|||||||
self.rel_auth[len(self.chat) - 1 - idx / 8] ^= (1 << (idx % 8))
|
self.rel_auth[len(self.chat) - 1 - idx / 8] ^= (1 << (idx % 8))
|
||||||
|
|
||||||
#super(CVCWindow, self).btnForward_clicked(widget, data)
|
#super(CVCWindow, self).btnForward_clicked(widget, data)
|
||||||
self.hide()
|
|
||||||
newCHAT = self.__formatHexString(self.rel_auth)
|
newCHAT = self.__formatHexString(self.rel_auth)
|
||||||
PinpadGTK("pin", newCHAT)
|
PinpadGTK("pin", newCHAT)
|
||||||
|
self.hide()
|
||||||
|
|
||||||
def __formatHexString(self, int_list):
|
def __formatHexString(self, int_list):
|
||||||
hex_str = ""
|
hex_str = ""
|
||||||
@@ -485,22 +483,19 @@ class PinpadGTK:
|
|||||||
waiting.add(img)
|
waiting.add(img)
|
||||||
waiting.set_position(gtk.WIN_POS_CENTER_ALWAYS)
|
waiting.set_position(gtk.WIN_POS_CENTER_ALWAYS)
|
||||||
waiting.set_modal(True)
|
waiting.set_modal(True)
|
||||||
waiting.set_transient_for(self)
|
waiting.set_transient_for(self.window)
|
||||||
waiting.set_decorated(False)
|
waiting.set_decorated(False)
|
||||||
waiting.show_all()
|
waiting.show_all()
|
||||||
|
|
||||||
line = p.stdout.readline()
|
line = p.stdout.readline()
|
||||||
# self.progressWindow.show()
|
|
||||||
while line:
|
while line:
|
||||||
# self.progressWindow.inc_fraction()
|
|
||||||
while gtk.events_pending(): #Keep GUI responsive
|
while gtk.events_pending(): #Keep GUI responsive
|
||||||
gtk.main_iteration()
|
gtk.main_iteration()
|
||||||
line = p.stdout.readline()
|
line = p.stdout.readline()
|
||||||
|
|
||||||
#Get the return value of the pace-tool process
|
#Get the return value of the pace-tool process
|
||||||
ret = p.poll()
|
ret = p.poll()
|
||||||
foo.destroy()
|
waiting.destroy()
|
||||||
# self.progressWindow.hide()
|
|
||||||
self.cardChecker.resume()
|
self.cardChecker.resume()
|
||||||
|
|
||||||
if (ret == 0):
|
if (ret == 0):
|
||||||
|
|||||||
Reference in New Issue
Block a user