fire-eggs / Danbooru2021

Python scripts and tools for working with the Danbooru2022 data set. Note: this is a sqlite database and a viewer, not directly related to machine learning.
https://www.gwern.net/Danbooru2021
MIT License
43 stars 2 forks source link

Config file #4

Open fire-eggs opened 4 years ago

fire-eggs commented 4 years ago

Add a config JSON file for the browser: path to image files; background color for picture view; path to database;

what else?

fire-eggs commented 4 years ago

Remember window sizes and positions

get:

root.winfo_width()
root.winfo_height()
root.winfo_geometry()

set: root.geometry(value) where value is of the form: (w)x(h)+(x)+(y)