-
Notifications
You must be signed in to change notification settings - Fork 31
Fontchooser improvements #77
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
base: master
Are you sure you want to change the base?
Conversation
An entry that takes only numbers or calculations and calculates the result of the calculation
Change the default hover-cursor from hand1 to hand2
Change the movement cursor from exchange to fleur
Change the default cursor to use the native link pointer on Mac and Windows
Add __getitem__, __setitem__, config and configure, docstring formatting
AppVeyor test failed, because I forgot to upload this
@@ -49,7 +54,7 @@ def selection(self): | |||
:return: None if no font is selected and font family name if one is selected. | |||
:rtype: None or str | |||
""" | |||
if self._font.get() is "" or self._font.get() not in self._fonts: | |||
if self._font.get() == "" or self._font.get() not in self._font_families: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first part of this condition is useless. An empty string won't be in the font family list anyways.
# --- Translation | ||
EN = {"Font properties:": "Font properties:"} | ||
|
||
FR = {"Font properties:": "Propriétés"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Propriétés works, but if we were to be specific, it would be Propriétés de police d'écriture
or just Propriétés de police
.
It depends on the context (source : am french)
# --- Translation | ||
EN = {"Font properties:": "Font properties:"} | ||
|
||
FR = {"Font properties:": "Propriétés"} | ||
|
||
DE = {"Font properties:": "Eigenschaften"} | ||
|
||
HU = {"Font properties:": "Betűstílus"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good imo to create a utility class to provide translations and internationalization, so that it can be used across the entire lib, as well as be editable by the programmer.
I'll make a separate PR about this to add such a functionnality.
I've made a few little improvements for
ttkwidgets.font
:FontChooser
andFontSelectFrame
, and all subwidgetsAutocompleteEntryListbox
forFontChooser
instead of a label and a listboxFontChooser
andFontSelectFrame
(DE, HU, FR(just for consistency with other dialogs, I had to use DeepL for it))FontChooser
: LabelFrames, preview frame redesign, dialog buttons were movedFontChooser
Toplevel improvements: master,.transient()
,.wait_visibility()
,.lift()
,.grab_set()
(just like inColorPicker
)