diff --git a/config.py b/config.py index cf8618f2..4f5d6847 100644 --- a/config.py +++ b/config.py @@ -83,7 +83,7 @@ elif platform=='win32': return retval -elif platform=='linux2': +elif platform=='linux': import codecs # requires python-iniparse package - ConfigParser that ships with Python < 3.2 doesn't support unicode from iniparse import RawConfigParser @@ -264,7 +264,7 @@ class Config(object): RegCloseKey(self.hkey) self.hkey = None - elif platform=='linux2': + elif platform=='linux': SECTION = 'config' diff --git a/theme.py b/theme.py index f632edf5..8eb78dd3 100644 --- a/theme.py +++ b/theme.py @@ -27,7 +27,7 @@ if platform == 'win32': FR_NOT_ENUM = 0x20 AddFontResourceEx(join(config.respath, u'EUROCAPS.TTF'), FR_PRIVATE, 0) -elif platform == 'linux2': +elif platform == 'linux': from ctypes import * XID = c_ulong # from X.h: typedef unsigned long XID @@ -193,7 +193,7 @@ class _Theme(object): # Set up colors def _colors(self, root, theme): style = ttk.Style() - if platform == 'linux2': + if platform == 'linux': style.theme_use('clam') # Default dark theme colors