Self.customFont = tkFont.Font(family="Pupcat", size=20, weight=tkFont.BOLD) Self.customFont1 = tkFont.Font(family="LMMono10", size=20) # change font size depending on screen dimension # ('Century Schoolbook L', 'Droid Sans Mono', 'Droid Sans Ethiopic', 'Droid Sans Thai', 'DejaVu Sans Mono', 'URW Palladio L', 'Droid Arabic Naskh', 'URW Gothic L', 'Dingbats', 'URW Chancery L', 'FreeSerif', 'DejaVu Sans', 'Droid Sans Japanese', 'Droid Sans Georgian', 'Nimbus Sans L', 'Droid Serif', 'Droid Sans Hebrew', 'Droid Sans Fallback', 'Standard Symbols L', 'Nimbus Mono L', 'Nimbus Roman No9 L', 'FreeSans', 'DejaVu Serif', 'Droid Sans Armenian', 'FreeMono', 'URW Bookman L', 'Droid Sans') Self.temperature = Label(self, text="? ☌", fg=condary, bg=Palette.background, font=temperature_font) Temperature_font = tkFont.Font(family='Droid Sans', size=12) Self.calendar = Label(self, text="?, ?", fg=condary, bg=Palette.background, font=calendar_font) Self.clock = Label(self, text="?:?", fg=Palette.primary, bg=Palette.background, font=clock_font)Ĭalendar_font = tkFont.Font(family='Droid Sans', size=12) Label=name + " Phase", showvalue=1, from_=0, to=10,įrame._init_(self, parent, background=Palette.background)Ĭlock_font = tkFont.Font(family='Droid Sans', size=52, weight='bold') Self.scale_P = Scale(self, length=100, orient="horizontal", Label=name + " Fréquence", showvalue=1, from_=1, to=10, Self.scale_F = Scale(self, length=100, orient="horizontal", Tickinterval=1, command=self.update_signal) Self.scale_A = Scale(self, length=100, orient="horizontal", Self.draw = Checkbutton(self,text="Afficher "+self.name, selectcolor=eval('_'+name), variable=self.drawVar, onvalue = 1, offvalue = 0, command=_all)
nsoles = Object( frame=graph, consoles= ) Wm.wm_protocol( self.top, name='WM_DELETE_WINDOW', func=self.quit ) nsoles = Object( frame=frame, consoles=consoles ) Self.scale_F.pack(expand="yes", fill="both")ĭef _init_( self, net, parent=None, width=4 ): Self.scale_P.pack(expand="yes", fill="both") Self.scale_A.pack(expand="yes", fill="both") Tickinterval=10, command=self.update_vibration) Self.scale_F = Scale(self, length=300, orient="horizontal", Tickinterval=20, command=self.update_vibration) Label=name + " Phase", showvalue=1, from_=0, to=90, Self.scale_P = Scale(self, length=300, orient="horizontal", Tickinterval=1, command=self.update_vibration) Label=name + " Amplitude", showvalue=1, from_=0, to=10, Self.scale_A = Scale(self, length=300, orient="horizontal", compute(self,a,f,p) : calcul de vibration harmonique update_vibration(self, event) : callback si modification de controleurs controleurs d'amplitude, frequence, phase (classe Scale) # 或者: from Tkinter.Frame import _init_ ĭef _init_(self, parent, name="X", color="red"):Ĭalcul d'une vibration harmonique du type : e=a*sin(2*pi*f*t+p) Stain isn't very good at making friends, but he manages to make a few friends and is often confused why he scares off almost everybody.# 需要导入模块: from Tkinter import Frame Stain isolated himself in a random portal since he questions whether or not he should be good or bad. Negativity makes Stain's strength grow since Stain's soul is a negative apple. Like Ink, Stain is afraid of dark and confined spaces also known as claustrophobia. Stain is a very neutral character since he was born between Nightmare's and Ink's power. Stain's two tentacles have the same galaxy design his long sleeves had. Stain bears a heavy resemblance to Nightmare and Vantablack (the fusion of Nightmare and Ink from the Admixverse au, previously called Accidentverse). Stain's eyes become purple and bare a slight resemblance to Corrupted Nightmare's eye. HIs moon-like ink birthmark becomes light purple. Stain in his corrupted form has purple colored goop that is similar to Nightmare's goop, the goop also covering his right eye, the only difference is that Stain only has two tentacles, which resembles his scarf, and differently colored goop. On his hoodie he has a cyan moon symbol imprinted to indicate that he is the son of Nightmare. Stain has cyan eyes with yellow highlights. Unlike Ink, Stain has a moon-like birthmark ink stain on his head, which is the only indication that he is a child of Nightmare. Like Ink, Stain carries his trusty pen with him and even has a pouch to carry his art supplies like Ink does. The clothes that bare the most resemblance to Ink is his long scarf that has a gradient color from grey to black. He also has an additional long sleeves with a design that looks like a galaxy that ends in fingerless gloves. Stain's pants are exactly the same pants Ink wears but is slightly longer. He wears a light blue-purple hoodie with an ink stain on the lower right of his torso and has sneakers. Stain in his uncorrupted form looks a lot like Ink.