1 import nuke
2 from PySide.QtGui import *
3 from blinkscripteditor import *
4
6
7 doNotUpdate = False
8
10 super(ScriptEditor, self).__init__(parent)
11
12 self.knob = knob
13
14 self.doNotUpdate = False
15
16
17 self.setWindowTitle("BlinkScript Editor")
18
19
20 splitter = PySide.QtGui.QSplitter(PySide.QtCore.Qt.Vertical)
21
22
23 self.myTextWindow = ScriptInputArea(None, self, self)
24 splitter.addWidget(self.myTextWindow)
25
26 layout = PySide.QtGui.QVBoxLayout()
27 self.setLayout(layout)
28 layout.addWidget(splitter)
29
30
31 self.myTextWindow.userChangedEvent.connect(self.storeTextOnKnob)
32
33 - def printText(self):
34 data = self.myTextWindow.toPlainText()
35 print str(data)
36
38 data = self.myTextWindow.toPlainText()
39 return data
40
42 self.doNotUpdate = True
43 self.knob.setText(self.myTextWindow.toPlainText())
44
52
59
60
63