how can I add a button to the --question dialog ?
in python, tkmessagebox allows it,
on windows messagebox also allows it,
but I can't find how to do it with zenity.
you can't. zenity only allows 2 option questions.
Related
I want to make a custom GUI button for a specific keyboad command in vscode. I have read a related question's answer here. But it didn't answer about making a separate GUI button.
Suppose, I want to make a GUI button to run tasks.json whose keyboard shortcut is Ctrl+Shift+B.
How can I achieve this?
Is there a way to reset the perspective in Eclipse and avoid the dialog that confirms it? I often reset my layout and map this action to a set of keys. It would be great if I can reset the perspective without it asking me "ARE YOU SURE" every time.
The current implementation always shows the confirmation dialog. You have to implement your own command that calls IWorkbenchPage.html#resetPerspective().
Each time I want to view a long output line, I have to drag the horizontal scroll bar. Is it possible to set word wrapping in PyDev's interactive console (not editor)?
Unfortunately no, it's not currently possible to enable word wrapping in the PyDev interactive console.
You may report this as a feature request in https://www.brainwy.com/tracker/PyDev (but even better would be providing a pull request for that -- see: http://www.pydev.org/developers.html)
It is now possible as of PyDev 6.2. By default it is not enabled. To see the icon that you have to click to enable visit this. For the possibility that the link disappears, go to the console tab and you will want to look for an icon which has a yellow "left-turn" arrow and click that.
I have an Eclipse application that uses a ViewPart as a floating window with buttons/options for what is happening in the editor.
It looks similar to the floating tool windows in GIMP.
Implementing ISaveablePart in the ViewPart provides a default dialog upon closing the ViewPart with everything I want: a Yes button for saving, a No button and a Cancel button.
However, I would like to customize that default dialog.
Is that possible? If so how?
I looked into ISaveablePart2, but I just end up with my own custom dialog PLUS the default. Is there a way to suppress the default dialog in ISaveablePart2? If so, that would also be a solution.
For clarity: I'm not married to either of these ideas. What I ultimately want is a custom dialog box to come up when someone closes the ViewPart to ask the user if they want to save the contents of the editor ---> with an option to cancel the closing of the ViewPart.
If you use ISaveablePart2 you should only get your own dialog as long as your promptToSaveOnClose method does not return ISaveablePart2.DEFAULT. So there should be no other dialog if you return ISaveablePart2.YES, ISaveablePart2.NO or ISaveablePart2.CANCEL.
The standard Save Prompt dialog is not customizable.
The code for this is org.eclipse.ui.internal.SaveableHelper.
I've got an ActiveX Command Button on a WorkSheet. I will be protecting the worksheet and need the button so it cannot be moved or changed, but still want it to be clickable.
How can I achieve this?
Go ahead and protect the sheet. If macros are enabled the button should remain click-able.