Welcome, Guest
Python Scripts for ComicRack

TOPIC: CR NOOB needs help

CR NOOB needs help 6 months 1 week ago #49325

  • Kratz
  • Kratz's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
hey,
i tied to create a first testscript to figure out how this whole scriptenvironment works.
iam a bit experienced in python (working with python about 3 month) and i have some expirience in dotnet.
so here is the first test-script (that failed):

i would be happy if someone can help me find out what i did wrong. thanks!

#FISRTAPP.py
#Author: me
#Description: first script

import sys
sys.path.append(r'C:\Python24\Lib')
import clr
clr.AddReference("System.Windows.Forms")
from System.Windows.Forms import Application, Form


class HelloWorldForm(Form):

def __init__(self):
self.Text = 'Hello World'
self.Name = 'Hello World'


#@Name Burn Books... [Defaults to function name]
#@Key BurnBooks [Defaults to function name]
#@Hook Books

def start(books):
for book in books:
print "yay"
form = HelloWorldForm()
Application.Run(form)

(indents not correctly displayed here!)
The administrator has disabled public write access.

CR NOOB needs help 6 months 1 week ago #49326

  • Kratz
  • Kratz's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
ohh... form.ShowDialog() did the Job !
thats what the errormessage told me :)
The administrator has disabled public write access.
Time to create page: 0.167 seconds

Who's Online

We have 204 guests and 4 members online