No such thing as a small change | |
PerlMonks |
Re^2: Gtk2::Dialog window sizeby smittypaddler (Acolyte) |
on Jun 30, 2016 at 23:43 UTC ( [id://1166960]=note: print w/replies, xml ) | Need Help?? |
set_default_size needs sizes in pixels. I had tried $dialog->set_size_request(500,-1), which worked, sort of. I know the size of my title in characters, but I don't know the width of the font used, so I can only guess at the required width in pixels, hence the 500. If my title is e.g. "No, whatever" I need something that will tell me how many pixels is equivalent to length("No, whatever").
In Section
Seekers of Perl Wisdom
|
|