Professional IronPython



Download 20,35 Mb.
Pdf ko'rish
bet381/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   377   378   379   380   381   382   383   384   ...   453
FIgURE 17-7: 
Add the System.Windows.Forms.DLL entry 
to your project.
LISTINg 17-3 
(continued)
548592c17.indd 370
2/24/10 12:49:35 PM
www.finebook.ir


Using Visual Basic.NET for User Interface Support
 

 
371
The 
GetInput()
method shows just one of several 
InputBox()
method variations you can use. In 
this case, the IronPython developer supplies the prompt (or message) and title to display onscreen. 
The 
GetInput()
method supplies a default 
InputBox()
value. Normally, you want to supply a value 
so that the user knows to type something and what you want the user to type. Even if the required 
input seems obvious to you, many users won’t know what to provide.
The 
__doc__()
provides a help string for the IronPython developer. The example shows something 
quick, but in reality, you’d provide complete documentation for your class. The output string can use 
all the standard formatting characters. You could even read the content in from an external source, 
such as a file, to make it easy to provide updates without having to recompile the extension. Using 
an external file would also allow the IronPython developer to personalize the content.
Defining Complex Forms
A Windows Forms class can contain anything you want. It can even call other forms as needed. 
In fact, anything you can do with a Visual Basic.NET Windows Forms application is doable with 
IronPython. Of course, you do need to maintain interaction with the IronPython application. The 
following steps describe how to create a simple Windows Forms class for your extension.
1.
Right-click Dialogs in Solution Explorer and choose Add
➤➤➪➤➤
New Item. Select the Windows 
Forms entry in the Installed Templates list. You see the Add New Item dialog box shown in 
Figure 17-8.
FIgURE 17-8: 
Add a Windows Form to your project.
548592c17.indd 371
2/24/10 12:49:36 PM
www.finebook.ir



Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   377   378   379   380   381   382   383   384   ...   453




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish