# More issues with forms and Python upgrades

**URL:** <https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533>\
**Category:** Developers\
**Created:** [November 15, 2023, 11:39am UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533 "2023-11-15T11:39:36Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [November 15, 2023, 11:39am UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533/1 "2023-11-15T11:39:36Z")

</div>

I gave up with the task dialog and went to winforms…

But have now discovered the Py3 in Dynamo is more long winded!!

Greyed out was the old code from IronPython and the ungreyed code is what I have to put now. ☹

**BUT… I can’t seem to set the font style. I just get an error if I place it in the Font brackets. Any idea?**

I’ve tried several variations.

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/5/85e933bf1c4d1b80ee7ca663cc9d9bab7283682b.png)

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [November 15, 2023, 12:02pm UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533/2 "2023-11-15T12:02:40Z")

</div>

label.Font = Font(“Arial”, 12, “Bold”)  
label.Font = Font(“Arial”, 12, Font.Style.Bold)  
label.Font.Bold = Font(“Arial”, 12)  
label.Font.Style.Bold = Font(“Arial”, 12) {getting desperate}  
label.Font= Font(“Arial”, 12, Style.Bold)

```
            label.Font= Font("Arial", 12)
            label.Font.Style = "Bold

```

label.Font= Font.Style(“Arial”, 12, FontStyle.Bold)  
label.Font= Font(“Arial”, 12, FontStyle.Bold)

All of the above give errors…

Then some variations don’t give errors but do nothing.

```
            label.Font = Font("Arial", 12)
            label.FontStyle = ("Bold")

```

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [November 15, 2023, 2:40pm UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533/3 "2023-11-15T14:40:50Z")

</div>

Hi, by looking at Mr. Poupin’s [article](https://voltadynabim.blogspot.com/2020/04/dynamopython-exemple-ui-visualisation.html) with SharpDevellop you have access to the code

Sincerely  
christian.stan

`self._label1.Font = System.Drawing.Font("Microsoft Sans Serif", 12, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0)`

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [November 15, 2023, 2:42pm UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533/4 "2023-11-15T14:42:08Z")

</div>

Thanks, I’ll check that out.

I just closed it in frustration!

I can’t seem to get anything but the most basic things to work!

I want to know why it’s not like actual Python!

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [November 15, 2023, 2:44pm UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533/5 "2023-11-15T14:44:11Z")

</div>

Sorry for not doing better, 100% true python, I still have big gaps

cordially  
christian.stan

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [November 15, 2023, 3:18pm UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533/6 "2023-11-15T15:18:07Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/c/9ca373e1fd18eda05f39109495560a77c8aca10c.png)

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [November 15, 2023, 3:27pm UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533/7 "2023-11-15T15:27:37Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/2/2200daddbdf9291a49701742b6381abbefc99291.png)

Can’t say I’m overly enamoured with the ‘upgrade’

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [November 15, 2023, 3:38pm UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533/8 "2023-11-15T15:38:53Z")

</div>

> [@Alien](#):
>
> Can’t say I’m overly enamoured with the ‘upgrade’

In my experience when there is a security driven update the coders suffer more than end users; doubly so when the update forces you to change multiple items at once (Python Engine and Python version).

For what it’s worth, this will make your inevitable evolution into C# easier…

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [November 15, 2023, 3:40pm UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533/9 "2023-11-15T15:40:54Z")

</div>

My ‘evolution’ to C# is going painfully slow…  
Think a geriatric snail who keeps getting sidetracked. 🐌

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [November 15, 2023, 3:43pm UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533/10 "2023-11-15T15:43:45Z")

</div>

Everyone moves at their own pace. Some jumped quickly (Konrad Sobon). Some may never leave Python (Andreas Dieckmann). I just built my first “real” package with it this fall.

Don’t look to others, but focus on your needs and end goals. 🙂

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [November 15, 2023, 3:50pm UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533/11 "2023-11-15T15:50:02Z")

</div>

I made an add-in for Revit with some fun images (bunch of useful company links)

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/6/5690bef994ce039c0cabbff540cd56f8d7361123.png)

I keep meaning to add more stuff… But the side tracked thing is a huge issue. 🤣

---

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [November 15, 2023, 6:39pm UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533/12 "2023-11-15T18:39:41Z")

</div>

The problem does not come from Python3 _(IronPython3 has no problems at this subject)_ but from the version of PythonNet currently used

PythonNet 2.5 vs PythonNet 3.0 example

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/d/6d0ba95b5a8c96495f0c236a0886c43450648e87.png)

_if there is no solution in the future, maybe a C# script OTB interpreter node might be welcome_

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [November 15, 2023, 7:26pm UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533/13 "2023-11-15T19:26:28Z")

</div>

> [@c.poupin](#):
>
> C# script OTB interpreter node might be welcome

If you have it compiled in C# you can just load in the DLL… that said a series of common _iInterfaceThing_ nodes might be a good addition to Dynamo for Revit, to allow users to pass them as inputs into Python nodes… 🤔

---

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [November 15, 2023, 8:25pm UTC](https://forum.dynamobim.com/t/more-issues-with-forms-and-python-upgrades/95533/14 "2023-11-15T20:25:52Z")

</div>

I was thinking more of a solution like this

> [@Testing Explicit C# Nodes Without Restarting Revit](https://forum.dynamobim.com/t/testing-explicit-c-nodes-without-restarting-revit/4283/5):
>
> If you’re testing something specific, you could always give my Dynamic CSharp Interpreter a go: You can find it on the package manager

_I think both solutions have advantages,_
