Search found 68 matches

Go to advanced search

by Chri1
Thu May 21, 2020 10:44 am
Forum: Python scripting and macros
Topic: manipulate svg-grafic in QDialog
Replies: 4
Views: 310

Re: manipulate svg-grafic in QDialog

Trying to achieve: I have a Dialog with some buttons. Every Button should show an explaining picture (always in the same label). On the whole, the pictures are relative similar. the differences I lied on different layers and can be shown by switching the layers. This works now by manipulating the sv...
by Chri1
Wed May 20, 2020 1:20 pm
Forum: Python scripting and macros
Topic: manipulate svg-grafic in QDialog
Replies: 4
Views: 310

Re: manipulate svg-grafic in QDialog

Firstly the code to manipulate the svg-file: import xml.etree.ElementTree as ET what = ..... svg # Path and filename tree=ET.parse(what) #Also possible: tree=ET.fromstring(svg - code) root=tree.getroot() for ding in root.iter('{http://www.w3.org/2000/svg}g'): #print(ding.attrib, ding.get('style')) d...
by Chri1
Sun May 17, 2020 3:56 pm
Forum: Python scripting and macros
Topic: manipulate svg-grafic in QDialog
Replies: 4
Views: 310

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...
by Chri1
Sun May 03, 2020 11:40 am
Forum: Python scripting and macros
Topic: QDialog should only be visible in one document
Replies: 1
Views: 107

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...
by Chri1
Sat Apr 18, 2020 1:10 pm
Forum: Python scripting and macros
Topic: crash by removeObject in combination wih snapper
Replies: 3
Views: 551

Re: crash by removeObject in combination wih snapper

Joel_graff wrote:
Sat Apr 18, 2020 1:35 am

Code: Select all

todo.delay(my_fn, None)
I don't know if this will solve your problem, but by the description, it sounds like a job for todo.delay() :)
Thank you very very much, this was it!
todo.delay(sg.removeChild, sp) # sg is the sceneGraph, sp is the SoSeparator


Kind regards
Chri1
by Chri1
Fri Apr 17, 2020 3:55 pm
Forum: Python scripting and macros
Topic: crash by removeObject in combination wih snapper
Replies: 3
Views: 551

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 ...
by Chri1
Sat Apr 11, 2020 1:58 pm
Forum: Python scripting and macros
Topic: crash by removeObject in combination wih snapper
Replies: 3
Views: 551

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("cb called by Sna...
by Chri1
Wed Feb 12, 2020 1:09 pm
Forum: Python scripting and macros
Topic: Split a window - createViewer(2)
Replies: 1
Views: 132

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...
by Chri1
Fri Jan 24, 2020 8:36 am
Forum: Forum in Deutsch
Topic: Ansicht splitten
Replies: 3
Views: 234

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...
by Chri1
Wed Jan 22, 2020 12:53 pm
Forum: Forum in Deutsch
Topic: Ansicht splitten
Replies: 3
Views: 234

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

Go to advanced search