Browse Source

Updated the Python WinForms template: Moved the clr.AddReference lines from the MainForm.py to Program.py so the form can be designed.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2980 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 18 years ago
parent
commit
00db2233f3
  1. 12
      src/AddIns/BackendBindings/Python/PythonBinding/Project/Templates/FormsProject.xpt

12
src/AddIns/BackendBindings/Python/PythonBinding/Project/Templates/FormsProject.xpt

@ -29,11 +29,7 @@ @@ -29,11 +29,7 @@
</ProjectItems>
<Files>
<File name="MainForm.py"><![CDATA[import clr
clr.AddReference('System.Windows.Forms')
clr.AddReference('System.Drawing')
import System.Drawing
<File name="MainForm.py"><![CDATA[import System.Drawing
import System.Windows.Forms
from System.Drawing import *
@ -47,7 +43,11 @@ class MainForm(Form): @@ -47,7 +43,11 @@ class MainForm(Form):
pass
]]></File>
<File name="Program.py"><![CDATA[from System.Windows.Forms import Application
<File name="Program.py"><![CDATA[import clr
clr.AddReference('System.Windows.Forms')
clr.AddReference('System.Drawing')
from System.Windows.Forms import Application
import MainForm
Application.EnableVisualStyles()

Loading…
Cancel
Save