Search found 16 matches
- Sat Apr 20, 2019 3:06 pm
- Forum: Python scripting and macros
- Topic: Call a second window and return a value
- Replies: 2
- Views: 755
Call a second window and return a value
Hi everyone, i have already made two windows, the first window is made in FreeCAD as a Macro , the second window one is made in python as a Module. so when i have imported the second window and called the method, the value it didn't return to the first window, who can find the solution of this scrip...
- Fri Mar 01, 2019 2:27 pm
- Forum: Python scripting and macros
- Topic: [Solved] [PySide] Print a GroupBox with DoubleSpinBox in GUI
- Replies: 4
- Views: 615
Re: [PySide] Who can find the solution of this script?
And in this code DoublespinBox is displayed : It looks like the issue is in line 36 of either file. Specifically, in the non-working version you have: self.doubleSpinBox = QtGui.QDoubleSpinBox("GroupBox",self.groupBox) and in the working version it's: self.doubleSpinBox = QtGui.QDoubleSpi...
- Fri Mar 01, 2019 12:55 pm
- Forum: Python scripting and macros
- Topic: [Solved] [PySide] Print a GroupBox with DoubleSpinBox in GUI
- Replies: 4
- Views: 615
Re: [PySide] Who can find the solution of this script?
So after the execution in console Python FreeCAD the problem is : File "<input>", line 34 self.groupBox.move(285,39) Hmm.. I was expecting to spot a missing parenthesis or something... Have you deleted the *.pyc file? It usually doesn't matter, but I've occasionally found that helps. Mayb...
- Fri Mar 01, 2019 12:14 pm
- Forum: Python scripting and macros
- Topic: [Solved] [PySide] Print a GroupBox with DoubleSpinBox in GUI
- Replies: 4
- Views: 615
[Solved] [PySide] Print a GroupBox with DoubleSpinBox in GUI
Hi guys, from PySide import * class Library(QtGui.QDialog): """""" def __init__(self): super(Library, self).__init__() self.initUI() def initUI(self): # create our window # define window xLoc,yLoc,xDim,yDim self.setGeometry(300, 200, 365, 500) self.setMaximumSize(365,50...
- Sun Feb 24, 2019 12:48 am
- Forum: Forum français
- Topic: keypressevent python, pyqt,pyside ????
- Replies: 0
- Views: 599
keypressevent python, pyqt,pyside ????
Bonsoir, J'ai besoin d'une fonction qui permet d'accepter seulement les valeurs réel (float) saisis dans un champs de texte (text input) en untilisant l'evenement keypress OS: Windows 7 Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.17.13541 (Git) Python version: 2.7.14 Qt version: ...
- Wed Feb 20, 2019 9:42 pm
- Forum: Python scripting and macros
- Topic: How can I add an icon to a window GUI?
- Replies: 3
- Views: 727
Re: How can I add an icon to a window GUI?
hi see Qt_Example , Dialog_creation mario Hi i have seen it but it didn't work, can you find the solution for this? from PySide import QtGui, QtCore class Test(QtGui.QDialog): """""" def __init__(self): super(Test, self).__init__() self.initUI() def initUI(self): # cre...
- Wed Feb 20, 2019 9:22 pm
- Forum: Forum français
- Topic: [PySide] Afficher une icone sur une Boite de dialogue??
- Replies: 1
- Views: 389
[PySide] Afficher une icone sur une Boite de dialogue??
Boujour tous le monde, J'ai essayé d'afficher une icone sur une boite de dialogue mais je n'ai pas arrivé à l'afficher voila le code : from PySide import QtGui, QtCore class Test(QtGui.QDialog): """""" def __init__(self): super(Test, self).__init__() self.initUI() def i...
- Wed Feb 20, 2019 9:14 pm
- Forum: Forum français
- Topic: [PyQt] Boîte de dialogue
- Replies: 9
- Views: 4232
Re: [PyQt] Boîte de dialogue
Bonjour Mario, Suivant votre code j'ai essayé d'afficher une icone une fenetre (GUI) mais je n'ai pas pu arriver à l(afficher voila le code : from PySide import QtGui, QtCore class Test(QtGui.QDialog): """""" def __init__(self): super(Test, self).__init__() self.initUI(...
- Tue Feb 05, 2019 11:08 pm
- Forum: Python scripting and macros
- Topic: How can I add an icon to a window GUI?
- Replies: 3
- Views: 727
How can I add an icon to a window GUI?
For example in this Code : from PySide import QtGui, QtCore class Example(QtGui.QDialog): """""" def __init__(self): super(Example, self).__init__() self.initUI() def initUI(self): # create our window # define window xLoc,yLoc,xDim,yDim self.setGeometry( 300, 200, 300, ...
- Sat Feb 02, 2019 12:32 pm
- Forum: Python scripting and macros
- Topic: [Solved] How to create many cubes in the same folder by parametric
- Replies: 11
- Views: 2174
Re: [Solved] How to create many cubes in the same folder by parametric
because when i recorded the macro of cube in Freecad, the command was recorded twice.
So you can remove one of them, it won't be a problem.
So you can remove one of them, it won't be a problem.