| thanks, andreas. but with wxpython i get the same errors.
i just tried it wit the demo code for wxpython: ----------------------------------------- <CsoundSynthesizer> <CsInstruments>
sr=44100 ksmps=128 nchnls=2
pyinit
pyruni {{
import wx
#----------------------------------------------------------------------
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1, style=wx.NO_FULL_REPAINT_ON_RESIZE) self.log = log
b =
wx.Button(self, 10, "Default Button", (20, 20)) self.Bind(wx.EVT_BUTTON, self.OnClick, b) b.SetDefault() b.SetSize(b.GetBestSize())
def OnClick(self, event): self.log.write("Click! (%d)\n" % event.GetId())
#----------------------------------------------------------------------
def runTest(frame, nb, log): win = TestPanel(nb, log) return win
#----------------------------------------------------------------------
if __name__ == '__main__': import sys,os import run run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:]) }}
instr 1
pyruni {{
print "pyruni works"}}
endin
</CsInstruments>
<CsScore> i 1 0 1 </CsScore> </CsoundSynthesizer> ---------------------
and the error masage was: <CsoundSynthesizer> <CsInstruments>
sr=44100 ksmps=128 nchnls=2
pyinit
pyruni {{
import wx
#----------------------------------------------------------------------
class TestPanel(wx.Panel): def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1, style=wx.NO_FULL_REPAINT_ON_RESIZE) self.log = log
b = wx.Button(self, 10, "Default Button", (20,
20)) self.Bind(wx.EVT_BUTTON, self.OnClick, b) b.SetDefault() b.SetSize(b.GetBestSize())
def OnClick(self, event): self.log.write("Click! (%d)\n" % event.GetId())
#----------------------------------------------------------------------
def runTest(frame, nb, log): win = TestPanel(nb, log) return win
#----------------------------------------------------------------------
if __name__ == '__main__': import sys,os import run run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:]) }}
instr 1
pyruni {{
print "pyruni works"}}
endin
</CsInstruments>
<CsScore> i 1 0 1 </CsScore> </CsoundSynthesizer> ------------------------------
are you using wxpython within csound?
--- Andres Cabrera <mantaraya36@gmail.com> schrieb am Do, 9.10.2008:
Von: Andres Cabrera <mantaraya36@gmail.com> Betreff: [Csnd] Re: AW: Re: tkinter within csound An: csound@lists.bath.ac.uk Datum: Donnerstag, 9. Oktober 2008, 0:22
Not necessarily, I mentioned tclcsound since you seemed interested in tcl/tk. One way to build gui's for csound is using wxpython.
Cheers, Andres
On Wed, Oct 8, 2008 at 11:09 AM, kind beta <kindbeta@yahoo.de> wrote: > It seems to say there's a problem with the python tkinter module when > used within csound. Maybe you want
to try using the tclcsound modues > for tcl/tk? > > i bought a book and started learning python last week... > you think tcl is better for scripting gui´s within csound and csound~ ? > > > >
--
Andrés
Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
|