File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -62,10 +62,12 @@ def stopFunction():
62
62
return True
63
63
64
64
def milliFormat (milliseconds ,subtractH = True ):
65
- if subtractH :
66
- milliseconds = milliseconds - 3600000
67
- return datetime .datetime .fromtimestamp (milliseconds / 1000 ).strftime ('%H:%M:%S' )
68
-
65
+ try :
66
+ if subtractH :
67
+ millisecondos = milliseconds - 3600000
68
+ return datetime .datetime .fromtimestamp (millisecondos / 1000 ).strftime ('%H:%M:%S' )
69
+ except :
70
+ return datetime .datetime .fromtimestamp (milliseconds / 1000 ).strftime ('%H:%M:%S' )
69
71
# player functions
70
72
71
73
def closePlayerWindow ():
@@ -533,7 +535,7 @@ def playerUI():
533
535
app .startSubWindow ('window_player' ,'PyCasts Player' ,transient = False ,modal = False )
534
536
app .setStopFunction (closePlayerWindow )
535
537
app .setFont (size = 12 , family = "Open Sans" )
536
- app .setSize (600 , 350 )
538
+ app .setSize (600 , 400 )
537
539
538
540
539
541
app .setStretch ('both' )
You can’t perform that action at this time.
0 commit comments