Browse Source

Misc

tags/1.9.4
falkTX 10 years ago
parent
commit
e12b6b1062
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      source/carla_skin.py

+ 22
- 0
source/carla_skin.py View File

@@ -548,6 +548,27 @@ class PluginSlot_Default(PluginSlot):

# ------------------------------------------------------------------------------------------------------------

class PluginSlot_Pixmap(PluginSlot_Default):
def __init__(self, parent, pluginId):
PluginSlot_Default.__init__(self, parent, pluginId)

# -------------------------------------------------------------
# Set-up GUI

self.setStyleSheet("""
QFrame#PluginWidget {
background-image: url(:/bitmaps/background_calf.png);
background-repeat: repeat-xy;
}""")

#------------------------------------------------------------------

def paintEvent(self, event):
# skip parent paiting
PluginSlot.paintEvent(self, event)

# ------------------------------------------------------------------------------------------------------------

class PluginSlot_Calf(PluginSlot):
def __init__(self, parent, pluginId):
PluginSlot.__init__(self, parent, pluginId)
@@ -1008,6 +1029,7 @@ def createPluginSlot(parent, pluginId):
if pluginName.split(" ", 1)[0].lower() == "calf":
return PluginSlot_Calf(parent, pluginId)

#return PluginSlot_Pixmap(parent, pluginId)
return PluginSlot_Default(parent, pluginId)

# ------------------------------------------------------------------------------------------------------------

Loading…
Cancel
Save