# Indentation Jython with Event script in perspective

**URL:** <https://forum.inductiveautomation.com/t/indentation-jython-with-event-script-in-perspective/114172>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 25, 2026, 2:36pm UTC](https://forum.inductiveautomation.com/t/indentation-jython-with-event-script-in-perspective/114172 "2026-02-25T14:36:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [February 25, 2026, 2:36pm UTC](https://forum.inductiveautomation.com/t/indentation-jython-with-event-script-in-perspective/114172/1 "2026-02-25T14:36:25Z")

</div>

Hello All,

It happen to me many times that I can´t indent properly Jython code on the event script configuration panel.  
Any advice someone has to solve this?  
Maybe edit the code somewhere else and paste it there afterwards?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/d/ade973ed6c3d6270bfc9092758c2303270213e53.png)

Cheers

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 25, 2026, 3:12pm UTC](https://forum.inductiveautomation.com/t/indentation-jython-with-event-script-in-perspective/114172/2 "2026-02-25T15:12:11Z")

</div>

Known issue when you use windows scaling other than 100%.

Doesn't happen in the project library, and it is generally a good idea to put your code in the library anyways. (Make the event a one-liner that delegates all of the parameters to a library function.)

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [February 25, 2026, 3:16pm UTC](https://forum.inductiveautomation.com/t/indentation-jython-with-event-script-in-perspective/114172/3 "2026-02-25T15:16:49Z")

</div>

Thanks @pturmel !
