Cleber N.Borges
2015-Dec-05 11:41 UTC
[R] Tk table: how to get information about configurations ?
Hello I would like to know the correct way of getting information about the values of the parameters of a Tktable. some details I even managed to extract but quite archaic form ... I thank you for advance for any help. cleber ################### # example library( tcltk ) ; tclRequire( 'Tktable' ) tt <- tktoplevel() ; fm <- ttkframe( tt ) tkpack( fm, expand=T, fill='both') # set info (geometry) of toplevel tkwm.geometry( tt, "600x400+400+200" ) # get info (geometry) about toplevel tcl( 'wm', 'geometry', wDataOrg ) table <- tkwidget( fm, 'table', background='white', selectmode="extended" ) tkpack( table, expand=T, fill='both' ) # how get informations about this table????????????? tkconfigure( table ) # ????????? tcl( table, 'xxxxx' ) # ??????????? tcl( table, 'curselection' ) --- Este email foi escaneado pelo Avast antiv?rus. https://www.avast.com/antivirus
phgrosjean at sciviews.org
2015-Dec-05 13:40 UTC
[R] Tk table: how to get information about configurations ?
It depends what property you are looking for? Have you tried tkcget(table, ?)? Philippe Grosjean> On 05 Dec 2015, at 12:41, Cleber N.Borges <klebyn at yahoo.com.br> wrote: > > Hello > I would like to know the correct way of getting information about the values of the parameters of a Tktable. > some details I even managed to extract but quite archaic form ... > I thank you for advance for any help. > > cleber > ################### > # example > > library( tcltk ) ; tclRequire( 'Tktable' ) > > tt <- tktoplevel() ; fm <- ttkframe( tt ) > > tkpack( fm, expand=T, fill='both') > > # set info (geometry) of toplevel > tkwm.geometry( tt, "600x400+400+200" ) > > # get info (geometry) about toplevel > tcl( 'wm', 'geometry', wDataOrg ) > > table <- tkwidget( fm, 'table', background='white', selectmode="extended" ) > > tkpack( table, expand=T, fill='both' ) > > # how get informations about this table????????????? > tkconfigure( table ) # ????????? > > tcl( table, 'xxxxx' ) # ??????????? > > tcl( table, 'curselection' ) > > > > > --- > Este email foi escaneado pelo Avast antiv?rus. > https://www.avast.com/antivirus > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Cleber N.Borges
2015-Dec-05 14:24 UTC
[R] Tk table: how to get information about configurations ?
I understood that the configuration is done by the "tk configure" but I can not get the value of the properties back. like this: tkconfigure (table, background = 'red') tkcget (table, 'background') # give me an error thanks for you help cleber ############################## > tkconfigure (table, background = 'red', titlecol=1, multiline=0 ) <Tcl> > > tkcget (table, 'background') # give me an error Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") : [tcl] invalid command name ".1.1.1". > tkcget (table, 'multiline') # give me an error Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") : [tcl] invalid command name ".1.1.1". > tkcget (table, 'titlecol') # give me an error Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") : [tcl] invalid command name ".1.1.1". > Em 05/12/2015 11:40, phgrosjean at sciviews.org escreveu:> It depends what property you are looking for? Have you tried tkcget(table, ?)? > > Philippe Grosjean>> >> Hello >> I would like to know the correct way of getting information about the values of the parameters of a Tktable. >> some details I even managed to extract but quite archaic form ... >> I thank you for advance for any help. >> >> cleber >> ################### >> # example >> >> library( tcltk ) ; tclRequire( 'Tktable' ) >> >> tt <- tktoplevel() ; fm <- ttkframe( tt ) >> >> tkpack( fm, expand=T, fill='both') >> >> # set info (geometry) of toplevel >> tkwm.geometry( tt, "600x400+400+200" ) >> >> # get info (geometry) about toplevel >> tcl( 'wm', 'geometry', wDataOrg ) >> >> table <- tkwidget( fm, 'table', background='white', selectmode="extended" ) >> >> tkpack( table, expand=T, fill='both' ) >> >> # how get informations about this table????????????? >> tkconfigure( table ) # ????????? >> >> tcl( table, 'xxxxx' ) # ??????????? >> >> tcl( table, 'curselection' ) >> >> >> >> >> --- >> Este email foi escaneado pelo Avast antiv?rus. >> https://www.avast.com/antivirus >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >--- Este email foi escaneado pelo Avast antiv?rus. https://www.avast.com/antivirus