Printrun icon indicating copy to clipboard operation
Printrun copied to clipboard

Custombtn

Open bsjoelund opened this issue 3 years ago • 4 comments

Pronterface will not start when custombtn.txt is present. Debian 10

bsjoelund avatar Jan 17 '22 15:01 bsjoelund

Hi @bsjoelund I'm unable to reproduce this. I assume you are running from source. What version of Printrun are you using? Or do you use de Debian package? Could you please share the error you get when you launch Pronterface from a terminal?

rockstorm101 avatar Jan 18 '22 06:01 rockstorm101

Hi,

Debian package

1.6:0

Cheers Bengt

Den 2022-01-18 kl. 07:38, skrev Rock Storm:

Hi @bsjoelund https://github.com/bsjoelund I'm unable to reproduce this. I assume you are running from source. What version of Printrun are you using? Or do you use de Debian package? Could you please share the error you get when you launch Pronterface from a terminal?

— Reply to this email directly, view it on GitHub https://github.com/kliment/Printrun/issues/1236#issuecomment-1015113544, or unsubscribe https://github.com/notifications/unsubscribe-auth/APWHUFPH2HENBUONVPNZG4LUWUDHPANCNFSM5ME7ODHA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

@.***:~$ pronterface WARNING:root:Could not setup DBus for sleep inhibition: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ScreenSaver was not provided by any .service files Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt Traceback (most recent call last): File "/usr/bin/pronterface", line 66, in app = PronterApp(False) File "/usr/lib/python2.7/dist-packages/printrun/pronterface.py", line 2296, in init self.mainwindow = PronterWindow(self) File "/usr/lib/python2.7/dist-packages/printrun/pronterface.py", line 220, in init self.reload_ui() File "/usr/lib/python2.7/dist-packages/printrun/pronterface.py", line 282, in reload_ui self.settings.controlsmode == "Mini") File "/usr/lib/python2.7/dist-packages/printrun/gui/init.py", line 294, in createGui self.cbuttons_reload() File "/usr/lib/python2.7/dist-packages/printrun/pronterface.py", line 1883, in cbuttons_reload b = wx.Button(self.centerpanel, -1, btndef.label, style = wx.BU_EXACTFIT) AttributeError: 'list' object has no attribute 'label'

btns=[ ###Defining custom buttons for pronterface is easy. Here's how. ###Below these instructions, add a line with the following format for each button

["button name","command",color(RGB)], <--That comma is important, do not forget it

###As an example: (Remove the # to try it out):

###You can use gcodes or any pronsole/pronterface commands ###The first four buttons will end up at the top of the window, visible in mini mode ###The rest of the buttons will be at the bottom under the gcode preview ###ADD BUTTON DEFINITIONS BELOW THIS LINE ["Read temp","M105",(200,100,100)], ["Disable Axes","M84",(400,100,100)],

###ADD BUTTON DEFINITIONS ABOVE THIS LINE ]

bsjoelund avatar Jan 18 '22 12:01 bsjoelund

Could it be that you messed up the configuration file? If you try to generate a new configuration file, does that make it work? For instance saving a copy of the config file like:

mv ~/.pronsolerc ~/.bak_pronsolerc

rockstorm101 avatar Jan 18 '22 19:01 rockstorm101

Hi @bsjoelund, any luck with the suggested solution?

rockstorm101 avatar Mar 05 '22 10:03 rockstorm101