xpuz.pages.home
¤
Default GUI page for xpuz. Provides global configuration options and
routing buttons to other available pages.
HomePage
¤
HomePage(master)
Bases: CTkFrame, Addons
Class that serves as a homescreen for the program, providing global setting configuration, exit functionality and the ability to view the currently available crossword puzzles.
Source code in src/xpuz/pages/home.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |
_start_version_checking
¤
_start_version_checking() -> None
Create a new event loop and begin checking for a new version of
xpuz asynchronously.
Source code in src/xpuz/pages/home.py
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 | |
change_appearance
¤
change_appearance(appearance: str) -> None
Ensures the user is not selecting the same appearance, then sets the appearance. Some list indexing is required to make the program compatible with non-english languages.
Source code in src/xpuz/pages/home.py
266 267 268 269 270 271 272 273 274 275 276 277 278 | |
change_crossword_quality
¤
change_crossword_quality(quality: str) -> None
Ensures the user is not selecting the same crossword quality, then
updates the crossword quality in config.ini.
Source code in src/xpuz/pages/home.py
307 308 309 310 311 312 313 314 315 316 317 | |
change_lang
¤
change_lang(lang: str) -> None
Ensures the user is not selecting the same language, then creates a
new locale variable based on the English name of the language
(retrieved from self.localised_lang_db). The method then installs a
new set of translations with gettext and regenerates the content of the
GUI.
Source code in src/xpuz/pages/home.py
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 | |
change_scale
¤
change_scale(scale: str) -> None
Ensures the user is not selecting the same scale, then sets the scale.
Source code in src/xpuz/pages/home.py
280 281 282 283 284 285 286 287 288 | |
check_version
async
¤
check_version() -> None
Coroutine to execute utils._check_version asynchronously.
Source code in src/xpuz/pages/home.py
347 348 349 350 351 352 353 354 | |
unbind_
¤
unbind_() -> None
Remove bindings which can be detected on different pages.
Source code in src/xpuz/pages/home.py
262 263 264 | |