So I'm progressing :-)
My current problem is I am trying to react to a WComboBox.changed() event. What
I get is a red [Loading...] prompt in the top right, the page then reloads and
the page returns to its default state and the handler never runs.
I'm using tomcat7.0.42.
classWHelloApplication(WApplication):
def__init__(self, env):
self.flieldCombos = [ ....combos... ]
self.fieldCombos[0].changed().addListener(self,SignalWrapper(self.comboSelChanged_0))
def comboSelChanged_0(self): self.selChanged(0)
def selChanged(self, fn):
newValue = self.fieldCombos[fn].getCurrentText()
mb = WMessageBox.show(str(fn) + " " +newValue, "Alert",
EnumSet.of(StandardButton.Ok))
classSignalWrapper(Signal.Listener):
def__init__(self, function):
self.function=function
deftrigger(self,*args):
self.function(*args)
Help?
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest