Commit ba099848 authored by Yan's avatar Yan

Fix for copy/paste for win/Python 3.8

parent 70c0d628
......@@ -12,7 +12,7 @@ from . import zcetools
from . import zcetools_help
__version__ = "0.0.15"
__version__ = "0.0.16"
__all__ = ['config', 'datatools', 'docks', 'drltools', 'filetools',
......
......@@ -16,8 +16,8 @@ def paint_image(mass_spec, spect, fn=None, painttarget=None):
"""generates QImage from mass spectrum"""
configtype = "print/{}" if isinstance(
painttarget, type(QtPrintSupport.QPrinter())) else "imggen/{}"
xinch, yinch = [float(cf.settings().value(configtype.format(i)).replace(
",", ".")) for i in ("xinch", "yinch")]
xinch, yinch = [float(cf.settings().value(configtype.format(i), type=str)\
.replace(",", ".")) for i in ("xinch", "yinch")]
dpi, xtics = [int(cf.settings().value(configtype.format(i))) for i
in ("dpi", "xtics")]
paintfig = Figure(figsize=(xinch, yinch), dpi=dpi, constrained_layout=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment