+ PySide migration

This commit is contained in:
wmayer
2014-02-27 19:15:46 +01:00
parent 3814c6b126
commit 451415945c
3 changed files with 4 additions and 5 deletions

View File

@@ -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()

View File

@@ -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):

View File

@@ -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):