use Tk;
my $mw=new MainWindow;
$mw->geometry("1024x768");
$mw->Scrolled("Text", -scrollbars => "s", -width => 30,-height=>10)->pack( );
MainLoop;
I need the help.The horizontal scrollbar is not working. What am I doing wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What is the wrap mode of the text widget? If it’s configured to wrap on word or character boundaries, the horizontal scrollbar won’t ever be needed. For me, the default wrapping mode is
char(i.e., wrap lines at character boundaries, like a terminal does) so I guess that’s the default for you too, despite the fact that you’re wanting it to benone(the only setting where a horizontal scrollbar is useful).Add
-wrap => "none",to your options toScrolled.