[julia-users] Re: I am trying to figure out how to pass DataTypes for a dataframe to @ListStore in Gtk.jl
I just did and it works perfectly. Thank you so much! On Tuesday, April 12, 2016 at 7:04:39 PM UTC-4, Eric Forgy wrote: > > Hi, > > I'm not sitting at a computer at the moment, but just curious if you've > tried > > ls = @ListStore(eltypes(df)...) > > Sorry for the noise if that doesn't work :) > >
[julia-users] Re: I am trying to figure out how to pass DataTypes for a dataframe to @ListStore in Gtk.jl
Hi, I'm not sitting at a computer at the moment, but just curious if you've tried ls = @ListStore(eltypes(df)...) Sorry for the noise if that doesn't work :)
[julia-users] Re: I am trying to figure out how to pass DataTypes for a dataframe to @ListStore in Gtk.jl
Yes, I have already looked at the example. I question was how to pass a bunch of DataTypes from a dataframe to the @ListStore(). For example, ls = @ListStore(Int64,Float64) works, while ls = @ListStore(tuple(eltypes(df)...)) does not. I was wondering whether there is a function in Gtk like tuple() in the above example that simplifies this. On Tuesday, April 12, 2016 at 3:25:45 PM UTC-4, jonatha...@alumni.epfl.ch wrote: > > There's an example in the tests: > > https://github.com/JuliaLang/Gtk.jl/blob/master/test/gui.jl#L476 > > So it seems like you need to declare your ListStore with the proper types, > and the iterate over your dataframe and push the data in. >
[julia-users] Re: I am trying to figure out how to pass DataTypes for a dataframe to @ListStore in Gtk.jl
There's an example in the tests: https://github.com/JuliaLang/Gtk.jl/blob/master/test/gui.jl#L476 So it seems like you need to declare your ListStore with the proper types, and the iterate over your dataframe and push the data in.