in reply to Stop mouse wheel from moving charts up/down Tk::Scrolled

I can't run your code because I don't have chart installed. But I think what you want to do here is put your charts inside of a frame and then scroll the frame (add Scrolled method to it), not a chart within the frame.

Update: I tried installing more packages, but still can't run the code (SQLite db missing). Can you make something a LOT more simple that still demonstrates the problem. That means self-contained runnable code that is pared down to the bare essentials? Charts don't have to do anything meaningful - or use any fancy options- just get something simple that demo's the problem. This GUI stuff can get tricky but, if we can actually run your code, then I'm sure a solution will be forthcoming.

  • Comment on Re: Stop mouse wheel from moving charts up/down Tk::Scrolled

Replies are listed 'Best First'.
Re^2: Stop mouse wheel from moving charts up/down Tk::Scrolled
by pashanoid (Scribe) on Jan 18, 2012 at 17:24 UTC

    I put the code and database here:

    http://pashanoid.ru/code/chart.pl

    http://pashanoid.ru/code/wind.db

    wind.db should be in same dir as chart.pl Thank you so much for your efforts!

      Your code bombs on my machine.
      I don't have Russian language fonts, but I'm not sure that is the problem.

      I can see the first chart before the code abends.

      Argument "" isn't numeric in numeric ge (>=) at C:/Perl/site/lib/Tk/Ch +art.pm line 1112. [WARNING] : -yminvalue and -ymaxvalue do not include all data at C:/Perl/site/lib/Tk/Chart/Lines.pm line 904 [BE CARREFUL] : -ymaxvalue option must be a number or real number at C:/Perl/site/lib/Tk/Chart/Lines.pm line 905 Process completed with exit code 255
        You probably did not download the enitre database. The code does not bomb and utf-8 russian characters have nothing to do with this. The problem exists with stopping the mouse wheel in moving the individual charts up and down.