I'm just getting my feet wet with attempting to add UI components to RV.
Using some of the examples I found on-line and the manual I'm trying to just get off the ground.
I've made what I think is a very basic plugin package which should simply print the QApplication.topLevelWidgets()
Ultimately I would like to create a list which will toggle on and off and live either docked to the side of the main window or as a separate HUD.
The package loads, however, nothing seems to ever actually do anything. I've tried several different key bindings but nothing I try seems to get picked up.
The init for the class is being called, however the key binding does not seem to get made.
from rv import rvtypes, commands
from PySide.QtGui import QApplication
import testgui # need to get at the module itself - not sure I understand this part.
self.visable = 0
[ ("key-down-alt-p",self.toggle,"toggle TestGui") ],
def toggle(self, event):
print "toggle testgui"
self.visable = 1 - self.visable
if self.visable == 1:
"Required to initialize the module. RV will call this function to create the mode."