When running matplotlib in interactive mode the figure should zoom when you drag while holding down the right mouse button. This is not working for me. It will zoom if I drag with the left mouse button while holding down the option key.
Does anyone know how to get the right mouse button working for zooming? Is it an issue with matplotlib, ipython, x11, settings in system preferences?
Here is a description of how things are supposed to work (look under 'Pan/Zoom'):
http://matplotlib.sourceforge.net/users/navigation_toolbar.html
I'm running Enthought python distribution 7.2.2 64 bit on OSX 10.5.8. The matplotlib plots are displayed in an X11 window and the backend is TkAgg.
Thanks.
In the TkAgg backend the mouse button numbers are hardcoded so there is no easy rc setting to change. I do notice that there is some special case code in the tkagg backend (~ line 351):
if sys.platform=='darwin':
# 2 and 3 were reversed on the OSX platform I
# tested under tkagg
if num==2: num=3
elif num==3: num=2
Which looks very suspicious given your problem. Perhaps it is worth opening a matplotlib issue, and giving some details as to the type of mouse you are using (plus all of the details in the original, well put together, question).
Related
Please note that I am not asking about Ctrl+Dragging. That is a different issue. I am asking about regular dragging, i.e. moving a text field around in my Main.storyboard file.
I can click on an object to bring up its little white boxes around the corners and sides, but I can neither drag around the object nor can I use the little white boxes to change the object's size.
I am using VNC Viewer on a Windows 10 platform and connecting to a Mac with version 10.11.6. On the Mac, I am using Xcode version 8.2.1 (8C1002).
everytime i use matplotlib GUI on mac it leaves some text on screen.
For example "Zoom Rectangle" tooltip appears on all windows ... and doesn't go away until I have closed python and matplotlib. It's very irritating to do this again and again. I just want to know weather it's problem with my stupid Macbook Air or something to do with matplotlib GUI!
I also have this problem. I haven't been able to fix it yet, but the following has helped. If you place your cursor over one of the icons (so that the tooltip appears) all of the other zombie tooltips will disappear. Then, move your mouse off of the icon and wait for the tooltip to completely disappear before closing the figure window. It is still crazy annoying, but at least you won't have to close python and matplotlib.
i want to make an animated wallpaper for windows. So far i have only expreience with Mac OS X programming and i'm new to windows. So i decided to work with QT because it seems that there is more help out there.
Until now i have created the app in a borderless window in qt. It work quiet fine.
But is there a way in QT to change the level of the window so that its appear above the windows wallpaper but behind the icons?
EDIT:
Ok if found a simple solution.
After some testing with the hints form kusg1 I figured out when there is a transparent window mouse events going still to the desktop.
I actualy want have this website has wallpaper: Ticketack. - So i created a frameless window which stays on bottom and has a transparent background and displays the text. Beside this i can change the windows wallpaper directly to get the background of the clock.
So clock text is not behind the icons but i think this will be ok.
Just some ideas: Use the windows flag as Qt::Window | Qt::FramelessWindowHint + Windows Stay at bottom hint, and set the content of the widget with your animated content (the suitable candidate is to use QGraphicsView).
The widget needs two main tasks:
Upon launching, it grabs the desktop background as pixmap and do overlay with the animated content (this needs to have the desktop to be wallpaper-less for simple scenario).
The widget needs to capture mouse and focus event and channel back to actual window command if the user wants to click the icon on the desktop.
Update:
Some pointers for the implementation:
For managing desktop icon, there is a good article here! (also found from SO).
Qt example and demos has an example on the taking desktop snapshot, the snippet is: QPixmap::grabWindow(QApplication::desktop()->winId());
Answer to your question: no, there isn't.
However, you can try something like this using Windows API: How to draw directly on the Windows desktop, C#?
I'm having some undesired behavior with movable panels in wxpython. I'm using the wxpython Cocoa build 2.9.2.3 for Python 2.7 on Mac OS X 10.6.7. I'm importing wx.aui and trying to create dockable panels.
I have a panel that I've created a wx.aui.AuiManager on and have added two panels, one on top and one on below. For both of them I have disabled the close button. Right now, the panels can be dragged into different dockable positions on the frame or off of the frame to create a floating window. This window shows up as the Mac native MiniFrame with a disabled close button. I do not want users to be able to separate the panels from the main frame.
I have passed .Floatable(False) to each pane's PaneInfo, but this won't allow the panels to be moved around at all, even if I pass a .Dockable(True)
Can I have panes in AUI that are dockable and movable, but not floatable?
I don't know if there's a way to do that or not. It may be a limitation of wx.aui. You should ask on the wxPython mailing list. Or you could try the mostly drop-in replacement: wx.agw.aui (http://xoomer.virgilio.it/infinity77/AGW_Docs/aui_module.html#aui). It fixes a bunch of bugs in the default wx.aui and is written in pure Python.
I have a slide bar to adjust the brightness of the screen on notebook displays in my application, but I found those articles from internet are adjusting the Gamma value, the behavior is not really like pressing the special key in keyboard. Is there a way to do it? Thanks in advance.
Here is some links what I found.
http://www.codeproject.com/KB/miscctrl/gamma_manager.aspx?display=PrintAll
http://mycomponent.blogspot.com/2009/05/set-screen-brightness-in-c.html
http://social.msdn.microsoft.com/Forums/en-US/sidebargadfetdevelopment/thread/8fd043fd-79fb-4d91-ad17-0d109f893331
Very unikely that there is a way to do it with software - it's probably controlled by the laptops BIOS, which windows will not have hooks into.
If your app is for Linux you could see how the Screen Brightness applet works by looking at the code.