QTDragon run from line dialog when not enabled

More
22 Aug 2021 23:04 #218448 by coredump
Also as far as I know, the widget_dialog.py that I got is the one on master github.com/LinuxCNC/linuxcnc/blob/master...ets/dialog_widget.py

Please Log in or Create an account to join the conversation.

More
23 Aug 2021 01:56 #218453 by cmorley
Ok I got a guess.
I use a hack to open the details display, which is essentially a forced button press.
I bet different versions of qt press a different button.

Could you try editing a file? (not sure where you are in experience.)
The dialog_widget.py needs to be edited.

need to remove this code:
        # force the details box open on first time display
        if self._flag and details != ' Tool Info: ':
            for i in self.buttons():
                if self.buttonRole(i) == 3:
                    i.click()
                    self._flag = False

Chris

Please Log in or Create an account to join the conversation.

More
23 Aug 2021 02:44 #218455 by cmorley
I'm pretty sure this is the problem so I changed the code in master to this:
        # force the details box open on first time display
        if self._flag and details != ' Tool Info: ':
            for i in self.buttons():
                if self.buttonRole(i) == QMessageBox.ActionRole:
                    if i is self._actionbutton: continue
                    i.click()
                    self._flag = False

Which checks a little harder to make sure it internally presses the right button.
 
The following user(s) said Thank You: coredump

Please Log in or Create an account to join the conversation.

More
23 Aug 2021 02:46 #218456 by cmorley
Oh and jumplist info is held in the preference file.
you can edit it when qtdragon is not running and the next time it is started it will use the new preferences.

Please Log in or Create an account to join the conversation.

More
23 Aug 2021 02:47 #218457 by cmorley
And is there was an error message that crashes the screen I would like to know the details please.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
23 Aug 2021 21:37 #218553 by coredump
Thanks @cmorley. That did it. Ran two different programs today and while my PCBs continue to suck, the interface behaved perfectly!

About the jump list: I don't even have anything on the prefs file, and it still complaining that it can't find '/media/coredump' that has been deleted a while ago but still on the jump list.

I haven't find any interface breaking error yet, but I am sure some will appear since the python changes are still ongoing.

Thanks for looking into this!

Please Log in or Create an account to join the conversation.

More
24 Aug 2021 00:49 #218567 by cmorley
Thanks for the feedback! that was a tough one :)

Jump list is recorded only in the pref file..maybe a different one then you are checking?

Please Log in or Create an account to join the conversation.

More
24 Aug 2021 02:49 #218574 by coredump
Yeah that was a weird bug. Thanks again.

And I don't see how it could be a different preference file:
coredump@cnc:~/6040
$ grep pref * -R
6040.ini:PREFERENCE_FILE_PATH = WORKINGFOLDER/qtdragon.pref
hallib/6040.hal:# qtdragon prefers their own
qtdragon_ini.log:2021-08-23 18:11:23,256 - QTvcp - INFO - Preference path: /home/coredump/linuxcnc/configs/6040/qtdragon.pref
qtdragon.pref:notify_start_detail = This option can be changed in the preference file
coredump@cnc:~/6040
$ grep -iA4 -B3 jump /home/coredump/linuxcnc/configs/6040/qtdragon.pref
notify_start_detail = This option can be changed in the preference file
notify_start_timeout = 5

[FILEMANAGER_JUMPLIST]

[CUSTOM_FORM_ENTRIES]
Tool to load = 5
Laser X = 100.0

Please Log in or Create an account to join the conversation.

More
24 Aug 2021 02:55 #218576 by cmorley
Well user and media are always added by default.
Are those the ones you mean?

Please Log in or Create an account to join the conversation.

More
24 Aug 2021 03:01 #218577 by coredump
Oh, well, that explains then :dry: Sorry about that. I guess I will just creat the damned directory :side:

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.081 seconds
Powered by Kunena Forum