Compare commits
2 Commits
347ee5f66c
...
681a71d0b1
Author | SHA1 | Date |
---|---|---|
itdominator | 681a71d0b1 | |
itdominator | f3283787e9 |
Binary file not shown.
|
@ -31,6 +31,10 @@ class Controller_Data:
|
||||||
self.setPagerWidget()
|
self.setPagerWidget()
|
||||||
self.setTasklistWidget()
|
self.setTasklistWidget()
|
||||||
|
|
||||||
|
# Must be after pager and task list inits
|
||||||
|
self.displayClock()
|
||||||
|
self.startClock()
|
||||||
|
|
||||||
# CPUDrawMixin Parts
|
# CPUDrawMixin Parts
|
||||||
self.cpu_percents = []
|
self.cpu_percents = []
|
||||||
self.doDrawBackground = False
|
self.doDrawBackground = False
|
||||||
|
|
|
@ -73,7 +73,7 @@ class TaskbarMixin:
|
||||||
|
|
||||||
|
|
||||||
# Displays Timer
|
# Displays Timer
|
||||||
def displayclock(self):
|
def displayClock(self):
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
hms = now.strftime("%I:%M %p")
|
hms = now.strftime("%I:%M %p")
|
||||||
mdy = now.strftime("%m/%d/%Y")
|
mdy = now.strftime("%m/%d/%Y")
|
||||||
|
@ -83,7 +83,7 @@ class TaskbarMixin:
|
||||||
|
|
||||||
# Starting or clock
|
# Starting or clock
|
||||||
def startClock(self):
|
def startClock(self):
|
||||||
GObject.timeout_add(59000, self.displayclock)
|
GObject.timeout_add(59000, self.displayClock)
|
||||||
|
|
||||||
|
|
||||||
def closePopup(self, widget, data=None):
|
def closePopup(self, widget, data=None):
|
||||||
|
|
|
@ -31,6 +31,10 @@ class Controller_Data:
|
||||||
self.setPagerWidget()
|
self.setPagerWidget()
|
||||||
self.setTasklistWidget()
|
self.setTasklistWidget()
|
||||||
|
|
||||||
|
# Must be after pager and task list inits
|
||||||
|
self.displayClock()
|
||||||
|
self.startClock()
|
||||||
|
|
||||||
# CPUDrawMixin Parts
|
# CPUDrawMixin Parts
|
||||||
self.cpu_percents = []
|
self.cpu_percents = []
|
||||||
self.doDrawBackground = False
|
self.doDrawBackground = False
|
||||||
|
|
|
@ -73,7 +73,7 @@ class TaskbarMixin:
|
||||||
|
|
||||||
|
|
||||||
# Displays Timer
|
# Displays Timer
|
||||||
def displayclock(self):
|
def displayClock(self):
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
hms = now.strftime("%I:%M %p")
|
hms = now.strftime("%I:%M %p")
|
||||||
mdy = now.strftime("%m/%d/%Y")
|
mdy = now.strftime("%m/%d/%Y")
|
||||||
|
@ -83,7 +83,7 @@ class TaskbarMixin:
|
||||||
|
|
||||||
# Starting or clock
|
# Starting or clock
|
||||||
def startClock(self):
|
def startClock(self):
|
||||||
GObject.timeout_add(59000, self.displayclock)
|
GObject.timeout_add(59000, self.displayClock)
|
||||||
|
|
||||||
|
|
||||||
def closePopup(self, widget, data=None):
|
def closePopup(self, widget, data=None):
|
||||||
|
|
Loading…
Reference in New Issue