Replies: 4 comments 3 replies
-
does this PR add the functionality you were looking for? #882 for 'running the viewer from the main script' you might also be interested in this change #880 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Matt
Thank you for your answer.
I could not test the change.
what i did is to download the modified qtviewer.py and try to check with
-ezdxf view - through the CLI
(base) xx:~$ ezdxf view
using Qt binding: PyQt5
Traceback (most recent call last):
File "/home/ricardo/mambaforge/bin/ezdxf", line 11, in <module>
sys.exit(main())
File
"/home/ricardo/mambaforge/lib/python3.10/site-packages/ezdxf/__main__.py",
line 98, in main
run(args)
File
"/home/ricardo/mambaforge/lib/python3.10/site-packages/ezdxf/commands.py",
line 452, in run
from ezdxf.addons.drawing.qtviewer import CadViewer
ImportError: cannot import name 'CadViewer' from
'ezdxf.addons.drawing.qtviewer'
(/home/ricardo/mambaforge/lib/python3.10/site-packages/ezdxf/addons/drawing/qtviewer.py)
The problems are (for me at least) :
class CADViewer(qw.QMainWindow):
def __init__(self, cad: Optional[CADWidget] = None):
"CADViewer" was formerly "CadViewer"
What I could check on cad_viewer.py . I was using cad_viewer.py for my
own tests.
The next line also is not recognized as was previously v =
CADViewer(config=config) on cad_viewer . I could not see how ezdxf view
works . Itś beyond my expertise.
Thanks for your help and sorry if iḿ messing up .
Ricardo
…On Sat, May 13, 2023 at 1:49 PM Matt Broadway ***@***.***> wrote:
does this PR add the functionality you were looking for? #882
<#882>
—
Reply to this email directly, view it on GitHub
<#874 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTHVHIKFIHL6F67IENY4RDXF63QRANCNFSM6AAAAAAXYF4RXA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks Matt
It works on demand (with Reload) and automatically (watch marked)
It also keeps the view when ticked.
The only issue I see , and don't know if related with this addition is
that text and attributes are not shown, only the container, even when they
are shown on the element properties on the sidebar.
I'ḿ using Qt binding: PyQt5.
Best Regards
Ricardo
…On Sat, May 13, 2023 at 8:21 PM Matt Broadway ***@***.***> wrote:
the best way to use the new functionality before the next ezdxf release is
to uninstall ezdxf from your virtualenvironment, clone the ezdxf repository
and run
cd <ezdxf repo>
pip install .
After the next release you can uninstall your editable copy and install
from pypi or conda forge again
—
Reply to this email directly, view it on GitHub
<#874 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTHVHJ2PWE47DG4FRC4CSDXGAJPFANCNFSM6AAAAAAXYF4RXA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
No. They are not visible at the first file load
El dom., 14 may. 2023 05:50, Matt Broadway ***@***.***>
escribió:
… Are these elements visible before clicking refresh?
—
Reply to this email directly, view it on GitHub
<#874 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTHVHPWSRKOXO657FYFZ5DXGCMHFANCNFSM6AAAAAAXYF4RXA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone
Using this great library I want to implement a viewer with PyQt backend like the existing with Ezdxf view , plus the functionality of maintaining previous zoom and position when the file is reloaded trough a reload button .
Like the example with matplotlib attached.
ezdxf_matplotlib_viewr_B .txt.
To call the viewer from the main script would be nice too
Could anybody give me a hand with this?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions