My VLC crashed
Matplotlib Python module's not working, (visual python's running without problem)
from __future__ import division, print_function
from visual import *
import wx
L = 400
H = 200
d = 20
def setrate(evt):
value = s1.GetValue()
tc.Clear()
tc.write('kecepatan = '+ str(value)) #mengeset kecepatan sesuai slider
w = window(width=2*(L+window.dwidth), height=L+window.dheight+window.menuheight+H,
menus=True, title='Widgets',
style=wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX)
#panel#
p = w.panel
tc = wx.TextCtrl(p, pos=(1.4*L,90), value='Tulisan\n',
size=(150,90), style=wx.TE_MULTILINE)
tc.SetInsertionPoint(len(tc.GetValue())+1)
tc.SetFocus()
s1 = wx.Slider(p, pos=(1.0*L,0.8*L), size=(0.9*L,20), minValue=0, maxValue=100)
s1.Bind(wx.EVT_SCROLL, setrate)
wx.StaticText(p, pos=(1.0*L,0.75*L), label='kecepatan')
#standart mantra for vpython#
while True:
rate(100)
funct1.gcurve.pos=[]
from __future__ import division, print_function
from visual import *
from visual.graph import *
import wx
L = 400
H = 200
w = window(width=2*(L+window.dwidth), height=L+window.dheight+window.menuheight+H,
menus=True, title='Widgets',
style=wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX)
funct1 = gcurve(color=color.cyan)
p = 0.
while True:
rate(100)
funct1.gcurve.pos=[]
for t in arange(-30, 74, 1):
funct1.plot( pos=(t, 5.0+5.0*cos(-0.2*t-p)*exp(0.015*t)) )
p = p + 0.1
if p >100:
p = 0
My sky is high, blue, bright and silent.
Nugroho's (almost like junk) blog
By: Nugroho Adi Pramono