in reply to Multiple Tk::Graphs with Tk::Notebook widget

So I `perldoc Tk::Graph' and I see
 -debug [*0*|1\
   This is the switch for debug output at the normal console (STDOUT)
, so I turn -debug on for my $graph1 = $page2->Graph( and I see
Width: 1, Height: 1
That ought to explain something

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^2: Multiple Tk::Graphs with Tk::Notebook widget
by mhearse (Chaplain) on May 02, 2005 at 07:05 UTC
    Hmm... I also tried activating debugging on the first graph. Bunch of output, as apposed to the one line from the second graph. Maybe you can only do one graph per NoteBook? I'm stabbing in the dark.

    By trial and error, I've concluded that when using a notebook, the graph must be on the first page. You get the 1x1 if it is on any other page accept the first.

      Maybe you can only do one graph per NoteBook?..
      No. You can, but it's currently buggy. Tk::Notebook (or something) for reporting width/height 1, and Tk::Graph for not allowing you to override width/height. If I were you I'd go sourcediving and try to patch and/or contact the authors/perltk-list for help.

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.