+ PySide migration
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
|
||||
import FreeCAD, FreeCADGui, Part, Draft, math, MeshPart, Mesh
|
||||
from PyQt4 import QtGui,QtCore
|
||||
from PySide import QtGui,QtCore
|
||||
App=FreeCAD
|
||||
Gui=FreeCADGui
|
||||
|
||||
@@ -293,4 +293,4 @@ la.addWidget(okbox)
|
||||
QtCore.QObject.connect(okbox, QtCore.SIGNAL("accepted()"), proceed)
|
||||
QtCore.QObject.connect(okbox, QtCore.SIGNAL("rejected()"), hide)
|
||||
QtCore.QMetaObject.connectSlotsByName(dialog)
|
||||
dialog.show()
|
||||
dialog.show()
|
||||
|
||||
@@ -8,7 +8,7 @@ An example for a high-level cutsom feature object to make a so called "radial co
|
||||
__author__ = "Werner Mayer <wmayer@users.sourceforge.net>"
|
||||
|
||||
import FreeCAD, FreeCADGui, Part, math
|
||||
from PyQt4 import QtGui
|
||||
from PySide import QtGui
|
||||
from FreeCAD import Base
|
||||
|
||||
def makeCopy(shape, radius, angle):
|
||||
|
||||
@@ -84,8 +84,7 @@ class TemplatePyMod_Cmd3:
|
||||
import PythonQt
|
||||
from PySide import QtGui
|
||||
mw=FreeCADGui.getMainWindow()
|
||||
QtGui.QMessageBox.information(mw,"PySide","""PySide was loaded successfully.\n
|
||||
Load the PyQt sandbox now...""")
|
||||
QtGui.QMessageBox.information(mw,"PySide","""PySide was loaded successfully.""")
|
||||
FreeCADGui.activateWorkbench("PythonQtWorkbench")
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
Reference in New Issue
Block a user