Re: drawing a very long line on the screen and how much of the lifting I have to do

Nathan smith <[email protected]> Fri, 28 May 2021 20:04:24 +0100
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
Hi tim,


thanks for this reply, exactly what I was looking for!

Regarding the pixel v.s. CM rule, I just did a google on the matter 
which told me a probably inaccurate figure, though it worked for rough 
testing purposes.

I ended up going with around 12.5 pixels to the half CM.


Nathan

On 28/05/2021 19:44, Tim Roberts wrote:
> Nathan smith wrote:
>>
>> Me again asking what is likely a very obvious question but for a 
>> blindy developer not so much.
>>
>> I'm wondering how WX python handles things that are bigger than the 
>> screen.
>
> You need to investigate the wxScrolledWindow and wxScrolledPanel 
> classes.  They allow to draw to a bitmap larger than the visible 
> window, and use scroll bars to scroll through that larger region.
>
>
>> So what i mean by this is I have a ten by ten grid, each square is 2 
>> CM in size.
>
> Interesting.  How do you decide how many pixels 2cm is?  Are you just 
> using your monitor as an example?
>

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/1dd0edad-213d-8f60-b5ae-01d82eb88eb4%40gmail.com.