Add Python 2.7 support
This commit is contained in:
parent
c0706070ab
commit
3031077713
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ class Module(bumblebee.engine.Module):
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
class BandwidthInfo:
|
class BandwidthInfo(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
io_counters = self.io_counters()
|
io_counters = self.io_counters()
|
||||||
self.network = io_counters[self.default_network_adapter()]
|
self.network = io_counters[self.default_network_adapter()]
|
||||||
|
@ -64,7 +64,7 @@ class BandwidthInfo:
|
||||||
return psutil.net_io_counters(pernic=True)
|
return psutil.net_io_counters(pernic=True)
|
||||||
|
|
||||||
|
|
||||||
class TrafficWidget:
|
class TrafficWidget(object):
|
||||||
def __new__(self, text, icon):
|
def __new__(self, text, icon):
|
||||||
widget = bumblebee.output.Widget()
|
widget = bumblebee.output.Widget()
|
||||||
widget.set('theme.minwidth', '00000000KiB/s')
|
widget.set('theme.minwidth', '00000000KiB/s')
|
||||||
|
|
Loading…
Reference in a new issue