13 lines
286 B
Python
Raw Normal View History

2022-07-15 12:09:04 +08:00
import pika_configparser
fd = open('test/assets/widget_config.ini', 'r')
s = fd.read(-1)
print(s)
config = pika_configparser.ConfigParser()
config.read_string(s)
print(config)
font_color = config.get('文本控件_20030101', 'font_color')
type(font_color)
print(font_color)
fd.close()