# Segment Editor: reduce the number of mouse clicks to set basic colour for segment

**URL:** https://discourse.slicer.org/t/segment-editor-reduce-the-number-of-mouse-clicks-to-set-basic-colour-for-segment/20236
**Category:** Feature requests
**Tags:** segmentation, color, gui
**Created:** [October 19, 2021, 11:50am UTC](https://discourse.slicer.org/t/segment-editor-reduce-the-number-of-mouse-clicks-to-set-basic-colour-for-segment/20236 "2021-10-19T11:50:54Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![DIV](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/div/32/12816_2.png) [@DIV](https://discourse.slicer.org/u/DIV)
#### Post date: [October 22, 2021, 5:01am UTC](https://discourse.slicer.org/t/segment-editor-reduce-the-number-of-mouse-clicks-to-set-basic-colour-for-segment/20236/7 "2021-10-22T05:01:38Z")

</div>

Hello, James.  
My username is purely alphanumeric; besides that, the file is exactly where I said: `C:/Users/[username]/.slicerrc.py`.  
_thinking_…  
_working_…  
OK, I have found the cause of the error message.  
I had inserted the following into the start-up script file (on the last three lines):

```auto
# Always use the “Basic” color picker
# https://discourse.slicer.org/t/segment-editor-reduce-the-number-of-mouse-clicks-to-set-basic-colour-for-segment/20236/3
ctk.ctkColorDialog().setDefaultTab(0)

```

If you inspect the comment “`Always use the ` **“** `Basic` **”** ` color picker`” [_copied from this thread_] carefully you’ll see that proper quotation marks are used. This is causing the error.  
When I change the comment to “`Always use the "Basic" color picker`” the error goes away.

I don’t think the curved quotation marks are especially exotic symbols, and most of all I didn’t expect any issue to be caused because they are in a comment, not a command.  
Nevertheless I leave it to your judgement as to whether this is a bug or whether it is expected/intended behaviour.

I can also confirm that the command is run at start-up, as the **Basic** tab is indeed now shown as the default tab in the _Select Color_ dialogue box.  
Every little bit helps. 🙂

`***`

Personally I would prefer that after clicking **OK** in the _Select Color_ dialogue box I didn’t have to then also click **Select** in the _Slicer_ dialogue box, but I think that the current structure of having two dialogue boxes makes the twofold confirmation unavoidable. That was part of the rationale behind my proposal to unify the current two dialogue boxes (with 1 + 2 tabs) into a single dialogue box (with 3 tabs): just a single “OK” would be needed.  
I realise that may not be a huge priority, but the idea is there to be considered anyway.

—DIV

---

_[View the full topic](https://discourse.slicer.org/t/segment-editor-reduce-the-number-of-mouse-clicks-to-set-basic-colour-for-segment/20236)._
