asadsid95 / mvc_tkinter

1 stars 0 forks source link

align inside parent Canvas #7

Closed asadsid95 closed 2 years ago

asadsid95 commented 2 years ago

issue with display itself; need to align it to parent Canvas

image

_Originally posted by @asadsid95 in https://github.com/asadsid95/mvc_tkinter/issues/6#issuecomment-984895153_

asadsid95 commented 2 years ago

2445e0f correction in commit: 2nd poster showed incorrectly:

  • in same top left corner as 1st post
  • 1st poster is being shown in parent canvas
  • What if I can keep parent canvas empty (of posters) and solely put in child canvases on it

Now I have to find out how to stack child canvases vertically, inside parent canvas

asadsid95 commented 2 years ago

reference for

9771758

image

asadsid95 commented 2 years ago

found here:

You can place any Tkinter widget onto a canvas by using a canvas window object. A window is a rectangular area that can hold one Tkinter widget. The widget must be the child of the same top-level window as the canvas, or the child of some widget located in the same top-level window.

If you want to put complex multi-widget objects on a canvas, you can use this method to place a Frame widget on the canvas, and then place other widgets inside that frame.

asadsid95 commented 2 years ago

reference for:

29d8f24

image