I wanted to allow user to click and drag the volume bars, but it seems there is a bug in superkaramba (in mouse move callback, button always equals to 0)
The background and colors were made to fit with The Space Age-001
I'd be curious to see how you were trying to use this. Do you have a copy of the file with that usage that didn't work? I noticed there was nothing commented in your current download as to what you were trying to do. If you can, send me an email with it attached or stop into IRC tonight after 5:30pm EST.
cheers,
-p0z3r
During my tests (this is my first theme and also my first python script!), I tried a very simple callback:
def widgetMouseMoved(widget, x, y, button):
print button
When moving the mouse with button 1 pressed, I got 0 printed in the console.
Here's what I found fiddling with the karamba.cpp.
http://doc.trolltech.com/3.3/qmouseevent.html#button
"Note that the returned value is always NoButton for mouse move events."
So it appears that this is the case. It's a bug. There might be a way to code around this in the karamba.cpp, for example setting up a callback similar to widgetClicked within the mouseMoved in karamba.cpp. btw, it's around line 3897 or so.
cheers,
-p0z3r
Ratings & Comments
5 Comments
I modified this to match the TDE style. Replace the following files in the images directory: bar.png http://xs21.xs.to/pics/05125/bar.png bg.png http://i147.exs.cx/img147/7318/bg1aq.png (change file name to bg.png) Also change the color=x,y,z lines to color=0,0,0 in the theme file.
I'd be curious to see how you were trying to use this. Do you have a copy of the file with that usage that didn't work? I noticed there was nothing commented in your current download as to what you were trying to do. If you can, send me an email with it attached or stop into IRC tonight after 5:30pm EST. cheers, -p0z3r
During my tests (this is my first theme and also my first python script!), I tried a very simple callback: def widgetMouseMoved(widget, x, y, button): print button When moving the mouse with button 1 pressed, I got 0 printed in the console.
When I get home from work, I'll see if there's a way around this somehow.
Here's what I found fiddling with the karamba.cpp. http://doc.trolltech.com/3.3/qmouseevent.html#button "Note that the returned value is always NoButton for mouse move events." So it appears that this is the case. It's a bug. There might be a way to code around this in the karamba.cpp, for example setting up a callback similar to widgetClicked within the mouseMoved in karamba.cpp. btw, it's around line 3897 or so. cheers, -p0z3r