| | |
| | | return False |
| | | |
| | | |
| | | def is_only_convertible_bonds(): |
| | | """ |
| | | 是否只有可转债 |
| | | :return: |
| | | """ |
| | | cp = __read_setting() |
| | | val = __get_setting(cp, "config", "only_convertible_bonds") |
| | | if val: |
| | | if int(val) > 0: |
| | | return True |
| | | return False |
| | | |
| | | |
| | | # 获取屏幕的比例 |
| | | def get_screen_scale(): |
| | | """ |
| | | 获取屏幕比例,默认1.5 |
| | | :return: |
| | | """ |
| | | cp = __read_setting() |
| | | val = __get_setting(cp, "config", "screen_scale") |
| | | if val: |
| | | return round(float(val), 2) |
| | | return 1.5 |
| | | |
| | | |
| | | if __name__ == "__main__": |
| | | print(get_ths_auto_click_time_space()) |
| | | set_ths_auto_click_time_space(1000) |
| | | print(get_screen_scale()) |