Python Forum
[Tkinter] Graphics CANVAS resolution
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Graphics CANVAS resolution
#1
Can someone tell me where to find the graphics canvas specifications from Python? If not may be can be explained?
I have looked everywhere and cannot find.
I am interested in:
1) Resolution when I open the canvas drawing area?
2) Left bottom corner should be dependent on screen resolution, but seems to be different on my computer. My graphics resolution is 2736x1824. When I plot a line in Turtle graphics I do not get that resolution.
3) How can I change screen graphic resolution?
4) A method that works to “get” graphic resolution? I have tried several from the internet, but they do not work correctly.
Reply
#2
tkinter is python's packaged GUI and includes Canvas widget

Python has packaged tkinter in the general release for quite some time.
Unfortunately the documentation has been and still is lacking.

The 'bible' on tkinter was maintained for a long time by New Mexico tech, document written by John Shipman.

Alas, this is no longer maintained or even available at that site.
However, there is a good Canvas (and also tkinter in general) tutorial here: https://www.python-course.eu/tkinter_canvas.php

Also you can still find John Shipman's manual here: https://anzeljg.github.io/rin2/book2/240...index.html
where you can download it as a PDF. (a good idea)

Mind you, there are some caveats that you must work with.
Shipmans Documentation was for python 2.7 which is no longer supported, but this has little effect on Tkinter.
the only gotcha that I know about is on importing tkinter.
In python 2.7 it was import Tkinter with a capital T
in python 3, it is import tkinter with a small T

Shipman's documentation is still the most comprehensive ever put together, I use it all the time when writing tkinter.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  8 image grid with automatical image resize by screen resolution AlexanderO 3 6,884 Dec-29-2019, 02:20 PM
Last Post: Xavier_Roga
  [Tkinter] Resizing image inside Canvas (with Canvas' resize) Gupi 2 25,028 Jun-04-2019, 05:05 AM
Last Post: Gupi
  [Tkinter] Adding graphics to canvas vangphucthinh 0 1,907 Jan-24-2019, 04:58 PM
Last Post: vangphucthinh
  [PyQt] My Application extends beyond screen resolution even whenI use self.showMaximized() bhargavbn 0 1,967 Oct-30-2018, 05:27 AM
Last Post: bhargavbn
  Resolution problem with pyinstaller Schreeg 0 2,142 Oct-23-2018, 04:27 AM
Last Post: Schreeg
  Change resolution of windows system sarangj 3 3,215 Jul-04-2018, 08:23 AM
Last Post: Larz60+
  [Tkinter] Need some basic help with GUI graphics Jerz 2 2,930 Nov-11-2017, 12:10 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020