Jump to content
Ultimaker Community of 3D Printing Experts
Sign in to follow this  

Dear CURA developers - can you please make the following change?

Recommended Posts

Is it maybe possible to create a new param for CURA-plugins,

called "none", "description" or whatever, that does NOT create the standard text box - that would be very useful for readability and so on...

It would be just 2-3 lines new code at pluginPanel.py ;)

edit: see here (post #5) for an example and code:



Share this post

Link to post
Share on other sites

Luck for what? That they implement it you mean?

It's really not a big deal... I hope they do it.

damn1 0.1 curaplugincode 2

Not the very best solution but a good one without too much effort:

change no. 1 at pluginPanel.py:

replace line 112:


s.Add(wx.StaticText(pluginPanel, -1, param['description']), pos=(3+i,0), span=(1,2), flag=wx.LEFT|wx.RIGHT|wx.ALIGN_CENTER_VERTICAL,border=3)



if param['description'] == '---' and param['type'] == 'none':
s.Add(wx.StaticLine(pluginPanel), pos=(3+i,0), span=(1,4), flag=wx.EXPAND|wx.LEFT|wx.RIGHT,border=3)
elif param['description'].startswith('b_'):
ctrl = wx.StaticText(pluginPanel, -1, (param['description'])[2:])
tmp = ctrl.GetFont()
s.Add(ctrl, pos=(3+i,0), span=(1,2), flag=wx.LEFT|wx.RIGHT|wx.ALIGN_CENTER_VERTICAL,border=3)
elif param['description'].startswith('m_'):
s.Add(wx.StaticText(pluginPanel, -1, ((param['description']).replace(r'\n','\n'))[2:]), pos=(3+i,0), span=(1,2), flag=wx.LEFT|wx.RIGHT|wx.ALIGN_CENTER_VERTICAL,border=3)
s.Add(wx.StaticText(pluginPanel, -1, param['description']), pos=(3+i,0), span=(1,2), flag=wx.LEFT|wx.RIGHT|wx.ALIGN_CENTER_VERTICAL,border=3)

change no. 2 at pluginPanel.py:

insert before line 123


else: #standard text box

the following



elif param['type'].lower() == 'none':

Then you can print with params...

... an empty second colum by type:'none'

... a line by description:'---' and type:'none'

... a bold text by 'b_' before the description

... use \n as newline by 'm_' before the description


Share this post

Link to post
Share on other sites

@Dim3nsioneer: everything is fine so far ;)



You should clone the source code from https://github.com/daid/Cura

using git, make your edits and submit them as pull request. That way your edits can be automatically merged with the existing code, if the code is up to standard.


well, my solution is really quick and not sophisticated.

if you can tell me that you will definitely include it when it is ready, then I will invest more time in a better way for the formatting options, ... (and use github)


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Our picks

    • How to 3D print with reinforced engineering materials
      Ultimaker is hosting a webinar where we explain how you can achieve and maintain a high print success rate using these new reinforced engineering materials. Learn from Ultimaker's Product Manager of Materials and top chemical engineer Bart van As how you can take your 3D printing to that next level.
      • 2 replies
    • "Back To The Future" using Generative Design & Investment Casting
      Designing for light-weight parts is becoming more important, and I’m a firm believer in the need to produce lighter weight, less over-engineered parts for the future. This is for sustainability reasons because we need to be using less raw materials and, in things like transportation, it impacts the energy usage of the product during it’s service life.
        • Like
      • 12 replies

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!