mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-13 15:57:14 +03:00
platform is always just 'linux' under python3
This commit is contained in:
parent
71e5f10457
commit
2440cf4a67
@ -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'
|
||||
|
||||
|
4
theme.py
4
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user