mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +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
|
return retval
|
||||||
|
|
||||||
|
|
||||||
elif platform=='linux2':
|
elif platform=='linux':
|
||||||
import codecs
|
import codecs
|
||||||
# requires python-iniparse package - ConfigParser that ships with Python < 3.2 doesn't support unicode
|
# requires python-iniparse package - ConfigParser that ships with Python < 3.2 doesn't support unicode
|
||||||
from iniparse import RawConfigParser
|
from iniparse import RawConfigParser
|
||||||
@ -264,7 +264,7 @@ class Config(object):
|
|||||||
RegCloseKey(self.hkey)
|
RegCloseKey(self.hkey)
|
||||||
self.hkey = None
|
self.hkey = None
|
||||||
|
|
||||||
elif platform=='linux2':
|
elif platform=='linux':
|
||||||
|
|
||||||
SECTION = 'config'
|
SECTION = 'config'
|
||||||
|
|
||||||
|
4
theme.py
4
theme.py
@ -27,7 +27,7 @@ if platform == 'win32':
|
|||||||
FR_NOT_ENUM = 0x20
|
FR_NOT_ENUM = 0x20
|
||||||
AddFontResourceEx(join(config.respath, u'EUROCAPS.TTF'), FR_PRIVATE, 0)
|
AddFontResourceEx(join(config.respath, u'EUROCAPS.TTF'), FR_PRIVATE, 0)
|
||||||
|
|
||||||
elif platform == 'linux2':
|
elif platform == 'linux':
|
||||||
from ctypes import *
|
from ctypes import *
|
||||||
|
|
||||||
XID = c_ulong # from X.h: typedef unsigned long XID
|
XID = c_ulong # from X.h: typedef unsigned long XID
|
||||||
@ -193,7 +193,7 @@ class _Theme(object):
|
|||||||
# Set up colors
|
# Set up colors
|
||||||
def _colors(self, root, theme):
|
def _colors(self, root, theme):
|
||||||
style = ttk.Style()
|
style = ttk.Style()
|
||||||
if platform == 'linux2':
|
if platform == 'linux':
|
||||||
style.theme_use('clam')
|
style.theme_use('clam')
|
||||||
|
|
||||||
# Default dark theme colors
|
# Default dark theme colors
|
||||||
|
Loading…
x
Reference in New Issue
Block a user