Search found 86 matches
- Sun May 17, 2020 3:56 pm
- Forum: Python scripting and macros
- Topic: manipulate svg-grafic in QDialog
- Replies: 4
- Views: 790
manipulate svg-grafic in QDialog
Hi I have a dialog (created with QT) with svg graphics (created with Inkscape), the grahics are integrated by styleSheet-property of an label. Pressing various buttons in the dialog box also changes the used SVG files. But: I don't want to use a lot of SVG files, I want to draw everything in one fil...
- Sun May 03, 2020 11:40 am
- Forum: Python scripting and macros
- Topic: QDialog should only be visible in one document
- Replies: 1
- Views: 361
QDialog should only be visible in one document
Hi I have a non-modal dialog, made with QT. When I run it, it appears as I wanted it, but when I switch to another document, the dialog is still visible (also if I switch to the macro-Editor). It should only be visible in the document, where I called it. import PySide from PySide import QtGui ,QtCor...
- Sat Apr 18, 2020 1:10 pm
- Forum: Python scripting and macros
- Topic: crash by removeObject in combination wih snapper
- Replies: 3
- Views: 964
Re: crash by removeObject in combination wih snapper
Thank you very very much, this was it!Joel_graff wrote: ↑Sat Apr 18, 2020 1:35 amI don't know if this will solve your problem, but by the description, it sounds like a job for todo.delay()Code: Select all
todo.delay(my_fn, None)
todo.delay(sg.removeChild, sp) # sg is the sceneGraph, sp is the SoSeparator
Kind regards
Chri1
- Fri Apr 17, 2020 3:55 pm
- Forum: Python scripting and macros
- Topic: crash by removeObject in combination wih snapper
- Replies: 3
- Views: 964
Re: crash by removeObject in combination wih snapper
I tried same, but instead of AnnotationLabel this: sg = Gui.ActiveDocument.ActiveView.getSceneGraph() ... te = coin.SoText2() ... Same result, it crashed And the error is a little different: Unhandled Base::Exception caught in GUIApplication::notify. The error message is: Access violation Unhandled ...
- Sat Apr 11, 2020 1:58 pm
- Forum: Python scripting and macros
- Topic: crash by removeObject in combination wih snapper
- Replies: 3
- Views: 964
crash by removeObject in combination wih snapper
Hi Following code causes crash of FreeCAD(0.18), when line with removeObject is executed - Therefore I have it commented: (This is not the "real" code - I extracted it to show the problem.) objectAnn=None import DraftSnap class Ui_Dialog: def start(): snapit(0) def cb(point): print("c...
- Wed Feb 12, 2020 1:09 pm
- Forum: Python scripting and macros
- Topic: Split a window - createViewer(2)
- Replies: 1
- Views: 576
Split a window - createViewer(2)
Hi For example: I have two cubes (grey, red) and want to draw a line(red) from an vertex of the first cube to a vertex of the second cube. To do this, I want to split the view into two parts, in the left part should be shown the first cube, in the right part the second cube. The start of the line sh...
- Fri Jan 24, 2020 8:36 am
- Forum: Forum in Deutsch
- Topic: Ansicht splitten
- Replies: 3
- Views: 562
Re: Ansicht splitten
Am Beispiel Word: Auch hier kann man das Fenster splitten. Man kann auch mehrere Fenster eines Dokumentes erzeugen und diese Anordnen. Das Splitten finde ich aber komfortabler und übersichtlicher. Auch ACAD kann beides und in den meisten Situationen finde ich das Splitten angenehmer. Wozu ich es bra...
- Wed Jan 22, 2020 12:53 pm
- Forum: Forum in Deutsch
- Topic: Ansicht splitten
- Replies: 3
- Views: 562
Ansicht splitten
Hi
Wie kann man die Ansicht splitten?
Ich meine nicht Menü Ansicht/Neue Ansicht, wo ich dann 2 Ansichtsfenster habe, sondern dass ein Ansichtsfenster geteilt wird.
So wie es auch der Befehl Bearbeiten/Ausrichten macht
LG
Chri1
Wie kann man die Ansicht splitten?
Ich meine nicht Menü Ansicht/Neue Ansicht, wo ich dann 2 Ansichtsfenster habe, sondern dass ein Ansichtsfenster geteilt wird.
So wie es auch der Befehl Bearbeiten/Ausrichten macht
LG
Chri1
- Wed Jan 22, 2020 12:06 pm
- Forum: Forum in Deutsch
- Topic: numpy und freecad neu installieren
- Replies: 6
- Views: 943
Re: numpy und freecad neu installieren
Geschafft! Habe in C:\Program Files\FreeCAD 0.18\bin\Lib\site-packages den numpy-Ordner gelöscht und dann FreeCAD neu installiert (ohne vorher zu deinstallieren) und jetzt funktioniert es wieder. Dachte zwar, dass ich das schon ein paar Tage zuvor probiert hätte …. egal. Numpy ist also schon prinzip...
- Mon Jan 20, 2020 1:52 pm
- Forum: Forum in Deutsch
- Topic: numpy und freecad neu installieren
- Replies: 6
- Views: 943
Re: numpy und freecad neu installieren
So, wenigstens das ist mal geklärt: Habe zuerst FreeCAD 0.18.3 nochmal, ohne vorheriger Deinstallation, installiert. Und dann das neuere FreeCAD 0.18.4 nochmal drüber installiert: Alles schaut aus wie gewohnt, meine Panik war unbegründet. (Eigene Workbenches sind da, Makros sind da,...) ABER: numpy ...