OK, I see. Now my problem is that, in my code, the initial value should 
then depend on another signal, and I have found no way of resolving this.
The actual code I have is










*lift(a -> togglebuttons([    "Landau" => (                 (n,m) -> 
one(Complex{Float64}), (n,m) -> one(Complex{Float64}),                 
(n,m) -> exp(-im*2π*a*m), (n,m) -> exp(im*2π*a*m)                 ),    
"Symmetric" => (                    (n,m) -> exp(-im*π*a*n), (n,m) -> 
exp(im*π*a*n),                    (n,m) -> exp(-im*π*a*m), (n,m) -> 
exp(im*π*a*m)    )    ], signal=ft), α)*

So I would like to initialize *ft* beforehand with, say, the first value in 
my Dict, the one under the key "Landau", but this depends on the value of 
the signal *α.*
On Tuesday, March 24, 2015 at 3:43:04 PM UTC+1, Shashi Gowda wrote:
>
> Not a bug, if you are passing in your own input signal to widgets, you 
> need to take care of maintaining the right initial values. It's also better 
> to use OrderedDict from DataStructures package here to keep the ordering of 
> the key-value pairs.
>
>
>
> On Tue, Mar 24, 2015 at 7:39 PM, Andrei Berceanu <[email protected] 
> <javascript:>> wrote:
>
>> Consider the following code
>>
>>
>>
>>
>>
>>
>> *using Reactive, Interactα = Input(0)togglebuttons(["one" => 1, "two" => 
>> 2], signal=α)signal(α)*I would expect the value of *α *to change after 
>> executing the *togglebuttons*(..) line, however this is not the case.
>> *signal(α) *on the next line shows that *α *is still 0, even though one 
>> of the buttons is pre-selected. One has to press the buttons at least once 
>> to change the value of *α*.
>> Can this behaviour be changed? Is it a bug? 
>>
>
>

Reply via email to