Gcode Graphics

More
04 Apr 2020 10:17 #162662 by cmorley
Replied by cmorley on topic Gcode Graphics
yes it stalls because it think you selected a line to highlight and the program is huge to search through.

We can disable this with some more handler code:
        self.w.gcodegraphics.program_alpha = True
        self.w.gcodegraphics.select_fire = self.select_fire

    def select_fire(self):
        return
You won't be able to select gcode lines in the screen though
Ini the mean time i will try to add background searching so it doesn't block.

Chris
The following user(s) said Thank You: hottabich

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

More
04 Apr 2020 10:31 - 04 Apr 2020 10:32 #162664 by hottabich
Replied by hottabich on topic Gcode Graphics
You are the best on this forum! It works so well! You have a very hard job, thanks for taking the time to help me.
Last edit: 04 Apr 2020 10:32 by hottabich.

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

More
04 Apr 2020 10:35 #162665 by cmorley
Replied by cmorley on topic Gcode Graphics
Добро пожаловать. Спасибо за ответ!

(Google translate)
The following user(s) said Thank You: hottabich

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

More
04 Mar 2021 00:01 #200963 by tacklem60
Replied by tacklem60 on topic Gcode Graphics
So I tried entering this into my handler file. It worked great, a huge noticable change in the resolution of the GCode and I was also having issues with the GUI freezing (usually for about 5-10 seconds) when I clicked and dragged to pan around the gcode graphics display on larger files. Clicking on a line of gcode is never something that I have used in my workflow so I would be more than happy to get rid of it.

After pasting that code into my handler file, the entire GUI seems to work great, crystal clear graphics and no freezing when panning on larger files. However, somehow by adding those few lines of code it renders my cycle start button useless. Nothing at all happens when I try hitting it. Any ideas at what could be causing it?

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

More
04 Mar 2021 02:20 #200983 by cmorley
Replied by cmorley on topic Gcode Graphics
What screen are you using?
no i can't see how that affects the cycle start.

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

More
04 Mar 2021 02:38 #200984 by tacklem60
Replied by tacklem60 on topic Gcode Graphics
I am using QTDragon. I just did a little messing around. The edits I am making are to the section of the handler named

def init_widgets(self):

When adding only the line "self.w.gcodegraphics.program_alpha = True" to the bottom of that section of the code, the graphics display has a very noticeable resolution change. Like the other user stated though, if you try to pan at all with that enabled, it will freeze the UI while it seemingly searches for which line of code you clicked on (even if you clicked on blank space in the graphics). Without the alpha turned on, that freeze is roughly 10 seconds for the gcode I am currently using to test it and with it enabled, the freeze lasted >60seconds before the UI became responsive again.

With the full text here below that you posted in the previous response, the UI responds wonderful, but the cycle start no longer works.

self.w.gcodegraphics.program_alpha = True
self.w.gcodegraphics.select_fire = self.select_fire

def select_fire(self):
return

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

More
04 Mar 2021 02:50 #200985 by cmorley
Replied by cmorley on topic Gcode Graphics
alpha mode should already be available in the settings page.
also 'inhibit mouse selection' to stop the pause.

Chris

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

More
04 Mar 2021 03:04 #200986 by tacklem60
Replied by tacklem60 on topic Gcode Graphics
Ok, this might take the problem a layer deeper. I have always known about those settings but they never seemed to have any effect.

I removed the line of code about alpha always = True and found the following.

Those buttons absolutely do work and they will turn on and off alpha display as well as inhibit mouse selection. Unfortunately, that only works if I cycle the option off then back on again when I start the UI. If I leave those boxes checked (or either one individually), when I restart the UI and check settings, they are still selected but they function as if they are turned off. If I uncheck the option and turn it back on again, I then get the desired effect again and it seems to remain active until I restart the UI.

Joe

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

More
04 Mar 2021 03:19 #200988 by cmorley
Replied by cmorley on topic Gcode Graphics
ok
I'll look into that

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

More
04 Mar 2021 18:45 #201034 by cmorley
Replied by cmorley on topic Gcode Graphics
Ok I hope i got this fixed properly now in qtdragon and qtdragon_hd (master branch)

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

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