# Python for .NET import syssys.path.append("..\\Frame1\\bin\\Debug") import clrclr.AddReference("Frame1") import Frame1import Systemimport System.Windows.Forms class pyForm1(Frame1.Form1): def __init__(self): self.Text = "Python for .NET" self.button1.Click += self.button1_Click def button1_Click(self, sender, e): self.Button1_Click(sender, e) def main(): myForm1 = pyForm1() System.Windows.Form..
# Python for .NET import clrclr.AddReference("Frame1")import Frame1import System.Windows.Forms def main(): myForm1 = Frame1.Form1() System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.Run(myForm1) if __name__ == '__main__': main() Python for .NET Referencehttp://pythonnet.github.io/https://github.com/pythonnet/pythonnethttps://github.com/pythonnet/pythonnet/wi..
# Video File Renamer# Rename video files so that various sets of video files can be sorted properly. import os def main(): path = 'd:\\Down\\z' for root, dirs, files in os.walk(path): step = 1000 / len(files) files.sort() count = 0 for item in files: prefix = "{0:0>4.0f}".format(step * count + step / 3) os.rename(os.path.join(root, item), os.path.join(root, "{0} {1}".format(prefix, item))) count..