# I can't change mode

**URL:** https://discourse.processing.org/t/i-cant-change-mode/28732
**Category:** Processing.py
**Created:** [March 22, 2021, 4:56pm UTC](https://discourse.processing.org/t/i-cant-change-mode/28732 "2021-03-22T16:56:51Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![wyqsuy](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@wyqsuy](https://discourse.processing.org/u/wyqsuy)
#### Post date: [March 22, 2021, 4:56pm UTC](https://discourse.processing.org/t/i-cant-change-mode/28732/1 "2021-03-22T16:56:51Z")

</div>

I wanted to use processing to program in python, but I can’t change the mode to python. I’ve got a message box saying: ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/0/0ea0799de2213b23f5542f370099516738b87543.png) . I don’t know what happened. Can somebody help me?

---

<div class="post-metadata">

### Author: ![wyqsuy](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@wyqsuy](https://discourse.processing.org/u/wyqsuy)
#### Post date: [March 22, 2021, 4:57pm UTC](https://discourse.processing.org/t/i-cant-change-mode/28732/2 "2021-03-22T16:57:51Z")

</div>

Don’t worry this message box. It’s not on your computer.

---

<div class="post-metadata">

### Author: ![javagar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/javagar/32/11434_2.png) [@javagar](https://discourse.processing.org/u/javagar)
#### Post date: [March 22, 2021, 5:18pm UTC](https://discourse.processing.org/t/i-cant-change-mode/28732/3 "2021-03-22T17:18:22Z")

</div>

Hello @wyqsuy, and welcome to the Processing Foundation Forum!

Did you have a program open that contains code from Java Mode or P5.js Mode? That could be the reason you saw that message box when you attempted to change the mode.

Go to the **File** menu and open a **New** file. Then change to Python Mode before writing any code. After that you will also have the option of opening a program that was previously written in Python Mode.

---

<div class="post-metadata">

### Author: ![wyqsuy](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@wyqsuy](https://discourse.processing.org/u/wyqsuy)
#### Post date: [March 23, 2021, 7:48am UTC](https://discourse.processing.org/t/i-cant-change-mode/28732/4 "2021-03-23T07:48:12Z")

</div>

Thank you it worked 🙂

---

<div class="post-metadata">

### Author: ![micuat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micuat/32/19407_2.png) [@micuat](https://discourse.processing.org/u/micuat)
#### Post date: [March 23, 2021, 8:58am UTC](https://discourse.processing.org/t/i-cant-change-mode/28732/5 "2021-03-23T08:58:56Z")

</div>

Just a thought, I also was confused by this dialog box time to time - can we make a pull request to make it a bit more friendly??

---

<div class="post-metadata">

### Author: ![javagar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/javagar/32/11434_2.png) [@javagar](https://discourse.processing.org/u/javagar)
#### Post date: [March 23, 2021, 9:38am UTC](https://discourse.processing.org/t/i-cant-change-mode/28732/6 "2021-03-23T09:38:48Z")

</div>

Yes, indeed, the message should be made more friendly. It was probably intended to help the user avoid inadvertently attempting to execute an open file in an inappropriate mode. One possible solution would be to invite the user to save and close any open files from the previous mode before the change to the requested mode is completed.

_Edited on March 23, 2021 to add details to the proposed remedy._

---

<div class="post-metadata">

### Author: ![micuat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micuat/32/19407_2.png) [@micuat](https://discourse.processing.org/u/micuat)
#### Post date: [March 23, 2021, 10:43am UTC](https://discourse.processing.org/t/i-cant-change-mode/28732/7 "2021-03-23T10:43:40Z")

</div>

thanks, I opened an issue here but not sure if I should open one in processing(3) repo as well

> <https://github.com/processing/processing4/issues/189>
>
> Description
> (not sure to put this here or processing3)
> The dialog is quite "unfriendly" at the moment and suggest to change
>  
>  
> ...
