- Posts: 395
- Thank you received: 0
GCode viewer line numbers
6 years 7 months ago #160064
by persei8
GCode viewer line numbers was created by persei8
The current gcode_editor widget only allows a line number margin width of 5 characters. 2d carving files often have more than 100K lines. What's the best way to change this to 6 characters? Thanks.
Please Log in to join the conversation.
6 years 7 months ago #160066
by bbsr_5a
Replied by bbsr_5a on topic GCode viewer line numbers
best way woudt be reduce the lines of g-code by increasing the linewidth
or even a greater Tool
this needs to be done as of a programmer in the QTWidget
or even a greater Tool
this needs to be done as of a programmer in the QTWidget
Please Log in to join the conversation.
6 years 7 months ago #160067
by cmorley
Replied by cmorley on topic GCode viewer line numbers
I just pushed work - it should be one character wider now and if you want to change it after that then use something like this:
self.w.GCODEEDITOR_WIDGET_NAME.set_margin_width(
This is new so you need to pull it in before trying it.
Chris
self.w.GCODEEDITOR_WIDGET_NAME.set_margin_width(
This is new so you need to pull it in before trying it.
Chris
Please Log in to join the conversation.
6 years 7 months ago #160124
by phillc54
Edit: I see it just got pushed to master with my last update.
Replied by phillc54 on topic GCode viewer line numbers
I don't see this yet.cmorley wrote: I just pushed work - it should be one character wider now and if you want to change it after that then use something like this:
self.w.GCODEEDITOR_WIDGET_NAME.set_margin_width(
This is new so you need to pull it in before trying it.
Edit: I see it just got pushed to master with my last update.
Please Log in to join the conversation.
6 years 7 months ago #160127
by cmorley
Replied by cmorley on topic GCode viewer line numbers
Thats twice now where I merged and then didn't push --getting older faster...
Please Log in to join the conversation.
6 years 7 months ago #160133
by phillc54
Quick question, is it possible to set the color and background in the stylesheeteditor. I have tried a few things but didn't get anywhere.
I only need it for when I am trying different things and do something wrong they end up the same color.
Replied by phillc54 on topic GCode viewer line numbers
I know the feeling well...cmorley wrote: Thats twice now where I merged and then didn't push --getting older faster...
Quick question, is it possible to set the color and background in the stylesheeteditor. I have tried a few things but didn't get anywhere.
I only need it for when I am trying different things and do something wrong they end up the same color.
Please Log in to join the conversation.
6 years 7 months ago #160136
by cmorley
Replied by cmorley on topic GCode viewer line numbers
I haven't tried stylesheets on gcode editor - i'll see what i can findout. My guess is it's controlled by the editor because of text coloring for different code.
Please Log in to join the conversation.
6 years 7 months ago #160137
by phillc54
Replied by phillc54 on topic GCode viewer line numbers
Not the GCode Editor (although that would be nice as well) the StyleSheetEditor itself.
Sometimes I change something in the StyleSheetEditor and end up with the same color and background...
Sometimes I change something in the StyleSheetEditor and end up with the same color and background...
Please Log in to join the conversation.
6 years 7 months ago #160139
by cmorley
Replied by cmorley on topic GCode viewer line numbers
ok try this:
Code:
StyleSheetEditor, QTextEdit {
background-color: lightblue;
color:green;
}
Please Log in to join the conversation.
6 years 7 months ago #160142
by phillc54
Replied by phillc54 on topic GCode viewer line numbers
Thanks Chris, the QTextEdit without the StyleSheetEditor works well enough to keep me out of trouble.
Please Log in to join the conversation.
Time to create page: 0.095 seconds
