[issue41969] ttk.RadioButtons mis-sized under Windows 10 UI Scaling, with dpiAware set true

2021-04-06 Thread Athanasius
Athanasius added the comment: I excitedy thought that you closing this issue meant that Python 3.9.3 or 3.9.4 had the newer TCL and this fixed. Sadly not. I've just had GitHub build a fresh executable using Python 3.9.4 (as evidenced by `Running on Python v3.9.4 (tags/v3.9.4:1f2e308, Apr

[issue43679] ttk.Sizegrip disappears under Windows 10 UI Scaling, with dpiAware set true and >1 scaling

2021-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: In issue 33656, we determined that tcl/tk *is* dpi aware and that telling Windows so is needed for proper text display. IDLE now issues the same Windows command (idlelib.pyshell, line 20). This perhaps should be done by Python itself, but that is not my

[issue41969] ttk.RadioButtons mis-sized under Windows 10 UI Scaling, with dpiAware set true

2021-04-03 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[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. ```

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

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: AFAIK X Window uses two font systems: for bitmap fonts and for scalable fonts. If default fonts on your system are bitmap fonts, they are not scaled. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[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

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

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The size of of the window is determined by the size of its components. The size of the label and the munu is determined by the size of the font. If font has the same size and you output the same string (or string containing characters of the same

[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:

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

2021-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What did you expect to get? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[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

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

2021-04-01 Thread Serhiy Storchaka
hen a piece of text must line up with respect to a fixed- size bitmap. The mapping between points and pixels is set when the application starts, based on properties of the installed monitor, but it can be overridden by calling the tk scaling com‐

[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

[issue43679] ttk.Sizegrip disappears under Windows 10 UI Scaling, with dpiAware set true and >1 scaling

2021-03-31 Thread MikeS
ot when using it. This might be related to the tk issues with hidpi and small radio/checkboxes https://bugs.python.org/issue41969 -- components: Tkinter messages: 389893 nosy: msmith priority: normal severity: normal status: open title: ttk.Sizegrip disappears under Windows 10 UI Scaling, with dpiAw

[issue41969] ttk.RadioButtons mis-sized under Windows 10 UI Scaling, with dpiAware set true

2020-12-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> third party status: open -> pending ___ Python tracker ___ ___ Python-bugs-list

[issue41969] ttk.RadioButtons mis-sized under Windows 10 UI Scaling, with dpiAware set true

2020-10-07 Thread Athanasius
New submission from Athanasius : Having recently looked into UI Scaling for an application I help develop I became aware with an issue involving tkinter.ttk.RadioButton and Windows UI Scaling. When you have some UI Scaling set along with dpiAware set true you might find that radio buttons

image scaling in cairo, python

2008-05-24 Thread _wolf
[also posted to: [EMAIL PROTECTED] hi all, i've heard cairo has become the image scling library for firefox3. is that true? wonderful, i want to do that in python. there's a python interface for cairo, right? i've used it before to do simple vector stuff. seems to work. however, i haven't been

Re: scaling problems

2008-05-20 Thread Arnaud Delobelle
James A. Donald [EMAIL PROTECTED] writes: Ben Finney The larger the program, the greater the likelihood of inadvertent name collisions creating rare and irreproducible interactions between different and supposedly independent parts of the program that each work fine on their own, and

Re: scaling problems

2008-05-20 Thread Marc 'BlackJack' Rintsch
On Tue, 20 May 2008 13:57:26 +1000, James A. Donald wrote: The larger the program, the greater the likelihood of inadvertent name collisions creating rare and irreproducible interactions between different and supposedly independent parts of the program that each work fine on their own, and

Re: scaling problems

2008-05-20 Thread Marc 'BlackJack' Rintsch
On Tue, 20 May 2008 10:47:50 +1000, James A. Donald wrote: 2. It is not clear to me how a python web application scales. Ask YouTube. :-) Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list

Re: scaling problems

2008-05-20 Thread Graham Dumpleton
gets a lot of http requests for one url, a small number of python processes will each sequentially handle a large number of those requests.  What I am really asking is: Are there python web frameworks that scale with hardware and how do they handle scaling? Reid Priedhorsky

Re: scaling problems

2008-05-20 Thread Nick Craig-Wood
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Tue, 20 May 2008 13:57:26 +1000, James A. Donald wrote: The larger the program, the greater the likelihood of inadvertent name collisions creating rare and irreproducible interactions between different and supposedly independent parts

Re: scaling problems

2008-05-20 Thread Duncan Booth
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Tue, 20 May 2008 10:47:50 +1000, James A. Donald wrote: 2. It is not clear to me how a python web application scales. Ask YouTube. :-) Or look at Google appengine where unlike normal Python you really are prevented from making good

Re: scaling problems

2008-05-20 Thread David Stanek
. Doubtless a python framework could be written to have satisfactory scaling properties, but what are the scaling properties of the ones that have been written? Both Django and TurborGears work well for me. When you step back and think about it all of the popular web frameworks would do just fine

scaling problems

2008-05-19 Thread James A. Donald
will each sequentially handle a large number of those requests. What I am really asking is: Are there python web frameworks that scale with hardware and how do they handle scaling? Please don't read this as Python sucks, everyone should program in machine language expressed as binary numbers. I

Re: scaling problems

2008-05-19 Thread Reid Priedhorsky
url, but if one gets a lot of http requests for one url, a small number of python processes will each sequentially handle a large number of those requests. What I am really asking is: Are there python web frameworks that scale with hardware and how do they handle scaling? This sounds like

Re: scaling problems

2008-05-19 Thread David Stanek
requests for one url, a small number of python processes will each sequentially handle a large number of those requests. What I am really asking is: Are there python web frameworks that scale with hardware and how do they handle scaling? What is the difference if you have a process with 10

Re: scaling problems

2008-05-19 Thread Ben Finney
James A. Donald [EMAIL PROTECTED] writes: I am just getting into python, and know little about it Welcome to Python, and this forum. and am posting to ask on what beaches the salt water crocodiles hang out. Heh. You want to avoid them, or hang out with them? :-) 1. Looks to me that

Re: scaling problems

2008-05-19 Thread Carl Banks
On May 19, 8:47 pm, James A. Donald [EMAIL PROTECTED] wrote: 1. Looks to me that python will not scale to very large programs, partly because of the lack of static typing, but mostly because there is no distinction between creating a new variable and utilizing an existing variable, so the

Re: scaling problems

2008-05-19 Thread James A. Donald
1. Looks to me that python will not scale to very large programs, partly because of the lack of static typing, but mostly because there is no distinction between creating a new variable and utilizing an existing variable, Ben Finney This seems quite a non sequitur. How do you see a

Re: scaling problems

2008-05-19 Thread James A. Donald
processes will each sequentially handle a large number of those requests. What I am really asking is: Are there python web frameworks that scale with hardware and how do they handle scaling? Reid Priedhorsky This sounds like a good match for Apache with mod_python. I would hope

Re: scaling problems

2008-05-19 Thread James A. Donald
. And from what I hear is scales just fine. I think you are looking at the problem wrong. The fundamentals are the same between threads and processes. I am not planning to write a web server framework, but to use one. Doubtless a python framework could be written to have satisfactory scaling properties

Re: the scaling of pics in pygame

2008-04-02 Thread Ramsey Nasser
Isn't PIL best suited for things like this? The resize function should do what you're looking for: http://www.pythonware.com/library/pil/handbook/image.htm On Wed, Apr 2, 2008 at 6:59 AM, [EMAIL PROTECTED] wrote: On Apr 1, 9:44 pm, Jimmy [EMAIL PROTECTED] wrote: Hi, everyone I am

Re: the scaling of pics in pygame

2008-04-02 Thread alex23
On Apr 2, 12:44 pm, Jimmy [EMAIL PROTECTED] wrote: I am using Pygame to write a small program. I tried to load a .jpg picture into the screen, however, the size of the pic doesn't fit into the window properly. Can anyone tell me how to scale the picture into the window? Have you tried the

the scaling of pics in pygame

2008-04-01 Thread Jimmy
Hi, everyone I am using Pygame to write a small program. I tried to load a .jpg picture into the screen, however, the size of the pic doesn't fit into the window properly. Can anyone tell me how to scale the picture into the window? thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: the scaling of pics in pygame

2008-04-01 Thread lbonafide
On Apr 1, 9:44 pm, Jimmy [EMAIL PROTECTED] wrote: Hi, everyone I am using Pygame to write a small program. I tried to load a .jpg picture into the screen, however, the size of the pic doesn't fit into the window properly. Can anyone tell me how to scale the picture into the window? You

scaling

2007-05-01 Thread Ashok
hi, IDL language contains a function called BYTSCL to scale all values of Array that lie in the range (Min £ x £ Max) into the range (0 £ x £ Top). Is there a similar function available in python? I need this to scale the pixel values of an image using PIL. thanks in advance for any help

Re: scaling

2007-05-01 Thread Gabriel Genellina
En Tue, 01 May 2007 11:22:28 -0300, Ashok [EMAIL PROTECTED] escribió: IDL language contains a function called BYTSCL to scale all values of Array that lie in the range (Min £ x £ Max) into the range (0 £ x £ Top). Is there a similar function available in python? I need this to scale the

Re: scaling

2007-05-01 Thread Charles Sanders
Gabriel Genellina wrote: [snip] if xminvalue: yield 0 elif xmaxvalue: yield top else: yield (x-minvalue)*top/(maxvalue-minvalue) [snip] Personally, I find yield min(top,max(0,(x-minvalue)*top/(maxvalue-minvalue))) or scaled_value =

Re: Scaling pictures

2006-12-30 Thread cyberco
cyberco wrote: PIL is certainly a fine option, but I noticed that the scaled images (scaled with the ANTIALIAS filter) are not as good as you can get with, say, Photoshop. Maybe I'm just expecting too much, but I wish I could choose a higher quality rescaling algorithm. PIL still rocks though.

Re: Scaling pictures

2006-12-29 Thread Kajsa Anka
On Thu, 28 Dec 2006 11:53:41 +0100, Kajsa Anka wrote (in article [EMAIL PROTECTED]): Thanks for the answers, I'll use PIL. jem -- http://mail.python.org/mailman/listinfo/python-list

Re: Scaling pictures

2006-12-29 Thread cyberco
is the best way of doing this, I will not do anything else than scaling the images. I found the Python Imaging Library but before I dive into that I would like to know if there is a better way of doing this.Yes. Python Imaging Library (PIL) is the preferred Python way to do this. The example

Scaling pictures

2006-12-28 Thread Kajsa Anka
scaling the images. I found the Python Imaging Library but before I dive into that I would like to know if there is a better way of doing this. -- http://mail.python.org/mailman/listinfo/python-list

Re: Scaling pictures

2006-12-28 Thread buffi
anything else than scaling the images. I found the Python Imaging Library but before I dive into that I would like to know if there is a better way of doing this. I prefer using imagemagick whenever I have to do anything related to images. http://www.imagemagick.org/script/index.php Resizing

Re: Scaling pictures

2006-12-28 Thread Ravi Teja
anything else than scaling the images. I found the Python Imaging Library but before I dive into that I would like to know if there is a better way of doing this. Yes. Python Imaging Library (PIL) is the preferred Python way to do this. The example is right in the documentation. http

Re: Scaling pictures

2006-12-28 Thread bearophileHUGS
Kajsa Anka: I found the Python Imaging Library but before I dive into that I would like to know if there is a better way of doing this. PIL is very fit for that. Note that it creates thumbnails already by itself, you can use that for bigger images too. Bye, bearophile --

Scaling down (was Re: Dealing with marketing types...)

2005-06-12 Thread Aahz
In article [EMAIL PROTECTED], Paul Rubin http://[EMAIL PROTECTED] wrote: What example? Slashdot? It uses way more hardware than it needs to, at least ten servers and I think a lot more. If LJ is using 6x as many servers and taking 20x (?) as much traffic as Slashdot, then LJ is doing

Re: Scaling down (was Re: Dealing with marketing types...)

2005-06-12 Thread Paul Rubin
prototype can no longer handle the traffic. The question then is how do you deal with that. and LAMP does have many mechanisms to obtain scalability when it's needed. LAMP seems to have no solution other than scaling (i.e. blowing more money on hardware and colo space). One really gets

Re: Scaling down (was Re: Dealing with marketing types...)

2005-06-12 Thread Aahz
mechanisms to obtain scalability when it's needed. LAMP seems to have no solution other than scaling (i.e. blowing more money on hardware and colo space). One really gets the impression that a more thoughtful design could handle the traffic without needing to scale the hardware. Is there some reason