Skip to content

Commit 26f1096

Browse files
author
cgvirus
committedJun 5, 2022
py3 update
1 parent c28288b commit 26f1096

File tree

4 files changed

+107
-104
lines changed

4 files changed

+107
-104
lines changed
 

‎Python_INIT/listNatronPath/listNatronPath.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ def listNatronPath():
1515
listIndex = 0
1616

1717
for p in myPath:
18-
print ' ' + myPath[listIndex]
18+
print (' ' + myPath[listIndex])
1919
listIndex +=1

‎Python_INIT/natronLogo/natronLogo.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
#This Source Code Form is subject to the terms of the Mozilla Public
2-
#License, v. 2.0. If a copy of the MPL was not distributed with this
3-
#file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4-
#Created by Fabrice Fernandez on 17/01/2018.
1+
# #This Source Code Form is subject to the terms of the Mozilla Public
2+
# #License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# #file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4+
# #Created by Fabrice Fernandez on 17/01/2018.
55

6-
import os
7-
import string
8-
from NatronEngine import*
9-
from os import*
6+
# import os
7+
# import string
8+
# from NatronEngine import*
9+
# from os import*
1010

11-
# LISTS NATRON PLUGINS PATHS #
11+
# # LISTS NATRON PLUGINS PATHS #
1212

1313

14-
def natronLogo():
15-
UserPath = os.path.expanduser('~')
16-
print ''.join(file( str(UserPath) + '/.Natron/Python_INIT/natronLogo/logo.txt'))
14+
# def natronLogo():
15+
# UserPath = os.path.expanduser('~')
16+
# print (''.join(file( str(UserPath) + '/.Natron/Python_INIT/natronLogo/logo.txt')))

‎init.py

+32-32
Original file line numberDiff line numberDiff line change
@@ -114,54 +114,54 @@ def Project_Callback(app):
114114

115115

116116
separator = ('------------------------------------------------------------')
117-
print '\n' + '\n' + separator
118-
print separator
119-
print '\n'
117+
print ('\n' + '\n' + separator)
118+
print (separator)
119+
print ('\n')
120120

121-
natronLogo()
121+
# natronLogo()
122122

123123

124-
print '\n' + '\n' + separator
125-
print separator
126-
print '-------------------- INIT.PY -----------------------'
127-
print separator
128-
print separator
124+
print ('\n' + '\n' + separator)
125+
print (separator)
126+
print ('-------------------- INIT.PY -----------------------')
127+
print (separator)
128+
print (separator)
129129

130130
# loading user preferences #
131131
#--------------------------#
132132

133-
print '\n'
133+
print ('\n')
134134
setPreferences()
135-
print '\n'
136-
print separator
135+
print ('\n')
136+
print (separator)
137137

138138
# check Natron's version status, version number, x32 or x64 version #
139139
#-------------------------------------------------------------------#
140-
print '\n'
140+
print ('\n')
141141
NatronStatus = natron.getNatronDevelopmentStatus()
142142
NatronVersion = natron.getNatronVersionString()
143143
binary = 'x64'
144144
x32_64 = natron.is64Bit()
145145
if x32_64 == 0 :
146146
binary = 'x32'
147147

148-
print ('- NATRON ') + 'version ' + NatronVersion + ' ' + str(NatronStatus) + ' (' + binary + ')'
149-
print '\n'
150-
print separator
148+
# print ('- NATRON ') + 'version ' + NatronVersion + ' ' + str(NatronStatus) + ' (' + binary + ')'
149+
print ('\n')
150+
print (separator)
151151

152-
print '\n'
152+
print ('\n')
153153
CPUs = natron.getNumCpus()
154-
print ('- ') + str(CPUs) + (' CPUs available on the system')
155-
print '\n'
156-
print separator
154+
# print ('- ') + str(CPUs) + (' CPUs available on the system')
155+
print ('\n')
156+
print (separator)
157157

158-
print '\n'
159-
print '- Deep layer added to the viewer'
160-
print '- Depth layer added to the viewer'
161-
print '- Mask layer added to the viewer'
162-
print '- Motion layer added to the viewer'
163-
print '\n'
164-
print separator
158+
print ('\n')
159+
print ('- Deep layer added to the viewer')
160+
print ('- Depth layer added to the viewer')
161+
print ('- Mask layer added to the viewer')
162+
print ('- Motion layer added to the viewer')
163+
print ('\n')
164+
print (separator)
165165

166166

167167
##################################################################
@@ -172,14 +172,14 @@ def Project_Callback(app):
172172
#################### print NATRON search path ####################
173173
listNatronPath()
174174

175-
print '\n' + separator
175+
print ('\n' + separator)
176176

177177
PyPlugMessage = ("- PYPLUG(S) LOADED :")
178-
print separator
179-
print '\n' + PyPlugMessage
178+
print (separator)
179+
print ('\n' + PyPlugMessage)
180180

181181
#################### print PYPLUG list ####################
182182
listPyPlugs()
183183

184-
print '\n' + separator
185-
print separator
184+
print ('\n' + separator)
185+
print (separator)

‎initGui.py

+62-59
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
import sys
1515
from NatronEngine import *
1616
from NatronGui import *
17-
from PySide.QtGui import *
17+
try:
18+
from qtpy.QtGui import *
19+
except ImportError:
20+
from PySide.QtGui import *
1821

1922

2023
#####################################################################
@@ -144,61 +147,61 @@
144147
NatronGui.natron.addMenuCommand('Tools/Node Graph/Spread Nodes Y','spreadNodesY' )
145148

146149
separator = ('------------------------------------------------------------')
147-
print '\n' + '\n' + separator
148-
print separator
149-
print '------------------- INITGUI.PY ---------------------'
150-
print separator
151-
print separator
152-
print '\n'
153-
154-
print '- \'Tools\' user menu added'
155-
print '\n'
156-
print ' + Tools/Channel/Auto Alpha'
157-
print ' + Tools/Channel/Extract EXR layers'
158-
print ' + Tools/Channel/Extract Image layers'
159-
print ' +'
160-
print ' + Tools/Generate/PostageStamp'
161-
print ' + Tools/Generate/Roto to tracker'
162-
print ' + Tools/Generate/Tracker to roto'
163-
print ' +'
164-
print ' + Edit/Batch rename'
165-
print ' + Edit/Connect nodes'
166-
print ' + Edit/Reconnect nodes'
167-
print ' + Edit/Force caching'
168-
print ' + Edit/Invert selection'
169-
print ' + Edit/Node Color'
170-
print ' + Edit/Bold node'
171-
print ' + Edit/Italic node'
172-
print ' + Edit/Open location'
173-
print ' + Edit/Select similar/Class'
174-
print ' + Edit/Select similar/Color'
175-
print ' + Edit/Remove input'
176-
print ' +'
177-
print ' + Tools/Other/Blending mode+'
178-
print ' + Tools/Other/Blending mode-'
179-
print ' + Tools/Other/Link roto to tracker'
180-
print ' +'
181-
print ' + Tools/Roto/Circle'
182-
print ' + Tools/Roto/Ellipse'
183-
print ' + Tools/Roto/Square'
184-
print ' + Tools/Roto/Rounded square'
185-
print ' + Tools/Roto/Rectangle'
186-
print ' + Tools/Roto/Rounded rectangle'
187-
print ' + Tools/Roto/Left triangle'
188-
print ' + Tools/Roto/Right triangle'
189-
print ' + Tools/Roto/Top triangle'
190-
print ' + Tools/Roto/Bottom triangle'
191-
print ' +'
192-
print ' + Tools/Time/Read FPS'
193-
print ' + Tools/Time/Read frame range'
194-
print ' +'
195-
print ' + Tools/Utils/Collect files'
196-
print ' + Tools/Utils/Replace paths'
197-
print ' +'
198-
print ' + Render/Background render'
199-
print ' + Render/Disk cache'
200-
print ' + Render/Flipbook'
201-
202-
203-
print '\n' + '\n' + separator
204-
print separator + '\n'
150+
print ('\n' + '\n' + separator)
151+
print (separator)
152+
print ('------------------- INITGUI.PY ---------------------')
153+
print (separator)
154+
print (separator)
155+
print ('\n')
156+
157+
print ('- \'Tools\' user menu added')
158+
print ('\n')
159+
print (' + Tools/Channel/Auto Alpha')
160+
print (' + Tools/Channel/Extract EXR layers')
161+
print (' + Tools/Channel/Extract Image layers')
162+
print (' +')
163+
print (' + Tools/Generate/PostageStamp')
164+
print (' + Tools/Generate/Roto to tracker')
165+
print (' + Tools/Generate/Tracker to roto')
166+
print (' +')
167+
print (' + Edit/Batch rename')
168+
print (' + Edit/Connect nodes')
169+
print (' + Edit/Reconnect nodes')
170+
print (' + Edit/Force caching')
171+
print (' + Edit/Invert selection')
172+
print (' + Edit/Node Color')
173+
print (' + Edit/Bold node')
174+
print (' + Edit/Italic node')
175+
print (' + Edit/Open location')
176+
print (' + Edit/Select similar/Class')
177+
print (' + Edit/Select similar/Color')
178+
print (' + Edit/Remove input')
179+
print (' +')
180+
print (' + Tools/Other/Blending mode+')
181+
print (' + Tools/Other/Blending mode-')
182+
print (' + Tools/Other/Link roto to tracker')
183+
print (' +')
184+
print (' + Tools/Roto/Circle')
185+
print (' + Tools/Roto/Ellipse')
186+
print (' + Tools/Roto/Square')
187+
print (' + Tools/Roto/Rounded square')
188+
print (' + Tools/Roto/Rectangle')
189+
print (' + Tools/Roto/Rounded rectangle')
190+
print (' + Tools/Roto/Left triangle')
191+
print (' + Tools/Roto/Right triangle')
192+
print (' + Tools/Roto/Top triangle')
193+
print (' + Tools/Roto/Bottom triangle')
194+
print (' +')
195+
print (' + Tools/Time/Read FPS')
196+
print (' + Tools/Time/Read frame range')
197+
print (' +')
198+
print (' + Tools/Utils/Collect files')
199+
print (' + Tools/Utils/Replace paths')
200+
print (' +')
201+
print (' + Render/Background render')
202+
print (' + Render/Disk cache')
203+
print (' + Render/Flipbook')
204+
205+
206+
print ('\n' + '\n' + separator)
207+
print (separator + '\n')

0 commit comments

Comments
 (0)