-
Notifications
You must be signed in to change notification settings - Fork 44
Width dialog box #6
Comments
AppleScript and zenity/qarma do not support that, and for Windows there are some hardcoded values. |
Indeed zenity supports zenity --question --text "line line line line\nlinelinelinelinelinelinesssssssssssssssssssssssssssssss\nlinelineline" --no-wrap It would be nice to support some options like this. Of course it will only work for zenity. Maybe provide a text word wrap functionality inside such that, a predefined with is computed for other implementation, and for zenity it is directly passed through? |
I wanted to use this implementation for https://github.com/gabyx/githooks, but I need such a functionality somehow, that the size can be controlled somehow. Maybe we can simulate the width for zenity, by using always --no-wrap and wrapping the input text between a word after a total of chars have been skipped summing up approximately to the desired units |
Actually: Zenity supports width as well: https://stackoverflow.com/questions/18234920/control-the-size-of-the-content-in-a-zenity-window |
It's a bit of a tricky topic, hence I introduced the option in this PR to create a message box without an icon in order to win some space: #30
|
How set width for dialog box?
The text was updated successfully, but these errors were encountered: