[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread A_D


New submission from A_D :

When using scaling (as in root.tk.call('scaling', somenum)), some linux systems 
appear to simply disregard the change. 

I recently reinstalled from Ubuntu to OpenSUSE Tumbleweed and found that 
scaling straight up did not work in the application I tried or the test 
application -- https://github.com/Athanasius/tk-scaling. (image attached)

Tested on python 3.8.8 and 3.9.2 (pyenv)

--
components: Tkinter
files: Screenshot_20210401_132045.png
messages: 389975
nosy: aunderscored
priority: normal
severity: normal
status: open
title: Tkinter scaling does not work on some linux systems
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file49924/Screenshot_20210401_132045.png

___
Python tracker 
<https://bugs.python.org/issue43694>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread A_D


A_D  added the comment:

I wasnt referring to fonts, I was refering to window scaling in general, which 
includes widgets and other things. Which are _also_ not being scaled correctly.

The example code doesnt mess with fonts at all either, which either means the 
default behaves in an unexpected manner, or just that as I said scaling just 
straight doesnt work.

--

___
Python tracker 
<https://bugs.python.org/issue43694>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread A_D


A_D  added the comment:

I'd expect the windows themselves to change size based on the percentage 
requested. eg as shown here 
https://user-images.githubusercontent.com/4589845/95577562-0a794500-0a3b-11eb-914e-9a5afc500b65.png
 (semirelated issue: https://github.com/EDCD/EDMarketConnector/issues/750 )

--

___
Python tracker 
<https://bugs.python.org/issue43694>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread A_D


A_D  added the comment:

Okay that makes sense to me. But then my next question is, why does this work 
on some linux systems and not others without having a specified font? 

Something funky about the font size? because I'd expect the platform defaults 
to at least be the same on different linux systems.

--

___
Python tracker 
<https://bugs.python.org/issue43694>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43694] Tkinter scaling does not work on some linux systems

2021-04-01 Thread A_D


A_D  added the comment:

Thanks so much for your help. To anyone in the future trying to figure this 
out: Apparently the default opensuse fonts (which are noto) are _not_ scalable. 
In my testing the following is enough to solve the issue.

```
tk.font.nametofont('TkDefaultFont').configure(family='DejaVu Sans', size=10)
```

--

___
Python tracker 
<https://bugs.python.org/issue43694>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com