![]() Here we start the application event loop and close the process once the application has finished. This is an infinite loop and Python will never advance past this point. The operating system will create events for the window, but they have no effect on the application itself until we start the event loop. Create your widget and open a new window to display it. Time.sleep(digital_display.sampling_period) # The problem here is that you have an infinite loop before you start the Qt event loop. Time.sleep(digital_display.sampling_period) # data.new_daq_nnect(digital_display.refresh_data) Self.sampling_period = refresh_data(self, data): Self.ui = loader.load(designer_file, self) #Initialize the QWidget object used to create the user interfaceĭesigner_file = QFile("signal_digital_display.ui") Self.daq = NI9213.NI9213(channels=daq_channels) Here is the code: import sysįrom PySide2.QtWidgets import QApplication, QWidgetįrom PySide2.QtCore import QFile, QObject, Signal, Slot The interface is only one piece of this application primarily made in Python and I will have multiple processes and multiple queues besides the Qt interface. What is the proper way to update PySide2 interface at a periodic interval from outside the interface object? Can I perhaps run the interface as a process and feed it with updated data with a queue? I imaging that is possible, but am having trouble finding an example. However, after some testing I found that if I ONLY try to print("in loop") inside that while loop, I get the same behavior. That was connected to a method in my QtWidget that just set the text of a label in the QtWidget to display the new data. I had created my own signal with new_data = Signal(float) and I was sampling data at an interval established by a time.sleep() call within that while loop and emitting the new_data signal each time the data was sampled. I initially thought the issue was in how I was using the signals and slots. Q2ID works in InDesign CC, CS6, CS5.5 or CS5 on both Macintosh and Windows platforms.I'm having trouble where my QtWidget stops responding if I try to use a while loop after calling the widget.show() method for the QtWidget object. Markzware's Q2ID data conversion software converts the intricate details of the original QuarkXPress document and instantly re-creates the document within Adobe InDesign. That gives you the ability to convert over 15 years worth of documents.Įasy License Management: Never Remember an Activation Code again! Q2ID converts Quark 4 through Quark 10 documents. Items that convert from QuarkXPress using the Q2ID QuarkXPress to InDesign plugin include: page positioning, color models, fonts and styles, images, and text attributes, as well as tables, layers, blends, runarounds, linked text boxes, anchored boxes, and pantone colors. What's that you say? Quark released a new version? You'll have access to the upgraded plugins which can convert the new Quark docs. If Adobe releases a new CC version which breaks compatibility with our current CC plugin, you'll get the upgraded plugin for free. You will have access to Q2ID for InDesign CC, CS6, CS5.5 and CS5 both Macintosh and Windows platforms with a single purchase and License.Ĭurrently running Adobe InDesign CS5 but thinking of upgrading? You'll be covered when you decide to upgrade to CS6 or CC. Our Q2ID Bundle Subscription gives you access to all current Q2ID plugin versions. No more re-creating documents from scratch. The Q2ID InDesign plugin gives you a big head-start on QuarkXPress to InDesign data conversion.
0 Comments
Leave a Reply. |