[julia-users] Re: I am trying to figure out how to pass DataTypes for a dataframe to @ListStore in Gtk.jl

2016-04-13 Thread Min-Woong Sohn
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

2016-04-12 Thread Eric Forgy
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

2016-04-12 Thread Min-Woong Sohn
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

[julia-users] Re: I am trying to figure out how to pass DataTypes for a dataframe to @ListStore in Gtk.jl

2016-04-12 Thread jonathan . bieler
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.