Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About timeline. #90

Open
water5 opened this issue Mar 4, 2022 · 1 comment
Open

About timeline. #90

water5 opened this issue Mar 4, 2022 · 1 comment
Labels
repo Repository meta files and documentation

Comments

@water5
Copy link

water5 commented Mar 4, 2022

The help document seems incorrect, type of resolution, tick_resolution should be float,
https://github.com/TkinterEP/ttkwidgets/blob/master/ttkwidgets/timeline.py#L100

   :param resolution: Amount of time per pixel [s/pixel]
   :type resolution: int
   :param tick_resolution: Amount of time between ticks on the timeline
   :type tick_resolution: int

resolutionseems must >= 0.01, otherwise the program will not response.
When options start, finish fixed, can I configure resolution >= 0.01?
(e.g. 1.0, let the marker move and return args interval is 1.0.)

@RedFantom
Copy link
Member

You are correct, the types in the documentation are not correct.

When you choose a very low resolution, the timeline might become very big. At least on Linux if I for example choose start=0, finish=10 and resolution=0.001, I get a BadAlloc error, indicating that not enough resources are available to create the widget. I don't know how the program will behave on Windows when this happens.

However, the exact limit might depend on a number of factors, which would have to be derived from the actual Tk code. In the past I have run into issues when using more than 16MiB of video memory, for example, but it depends also on configuration, OS, etc.

@RedFantom RedFantom added the repo Repository meta files and documentation label Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
repo Repository meta files and documentation
Projects
None yet
Development

No branches or pull requests

2 participants