Re: Tk canvas: why are some lines a pixel too short?



Use the -capstyle option to control how the ends of lines are drawn.
E.g.

pack [canvas .c]
..c create line 10 10 20 30 -capstyle round
..c create line 10 30 20 10 -capstyle round

Geoff.
.



Relevant Pages

  • Re: WPF Background issue
    ... public class CustomViewer: ScrollViewer ... This will create a window with the control on half of it. ... covering what is drawn in the OnRender method. ... OnRender method to draw onto the control. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Koch Figures - LTK package
    ... The function you are looking for is (clear canvas). ... (vector-push A1 puntos-nuevos) ... :master f:text "Koch Curve" ... (pack bc:side:left) ...
    (comp.lang.lisp)
  • Re: and binding on same widget
    ... Without seeing your code or knowing ... pack [canvas .c] ... The real solution is not to do so much work in an event processing routine. ...
    (comp.lang.tcl)
  • Packing cannot be that difficult, can it?
    ... How to a canvas at the very bottom of ... I found out that if I increase the height of my text widget the ... pack $leftFr -side left ... set rightFr [frame $parent.rightFr] ...
    (comp.lang.tcl)
  • Re: Canvas controls
    ... The first is a EditField and the second a canvas. ... It's like if you have some buttons inside a GroupBox: if you hide the GroupBox, ... Or, if these aren't already on a tab panel or page panel, you could put a PagePanel behind them and put each control on a separate page; that's exactly the sort of thing that PagePanels are for. ...
    (comp.lang.basic.realbasic)