Re: [Tkinter-discuss] configure command

2018-03-07 Thread Michael Lange
Hi,

On Wed, 7 Mar 2018 13:46:40 +
adil gourinda  wrote:

> For the last time, what is the parameter's name that accepts option's
> name as a string:
> 
> instance.configure(?!?!="option")
> 
> I hope I was clear this time.

ok, I got it now :)
As Brian pointed out, there is no literal parameter name here in Python,
however (to make things a bit more confusing :) technically speaking you
can use "cnf" as keyword-parameter here (although "cnf" is usually
supposed to be a {"option":"value"} dict), so e.g.:

  >>> widget.configure('bd')
  ('borderwidth', 'borderWidth', 'BorderWidth', , 0)

is equal to

  >>> widget.configure(cnf='bd')
  ('borderwidth', 'borderWidth', 'BorderWidth', , 0)


Regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

You can't evaluate a man by logic alone.
-- McCoy, "I, Mudd", stardate 4513.3
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss


Re: [Tkinter-discuss] configure command

2018-03-07 Thread Bryan Oakley
>
> For the last time, what is the parameter's name that accepts option's name
> as a string:


The tk documentation calls this "option". In python it doesn't have a
literal name. If you need to refer to it in documentation you could use
"argument" or "the only argument" or  "the first positional argument". For
example: "if you call the configure method with a single argument (eg:
label_widget.configure("text")), it will return ..."



On Wed, Mar 7, 2018 at 7:46 AM, adil gourinda 
wrote:

> For the last time, what is the parameter's name that accepts option's name
> as a string:
>
> instance*.configure(*?!?!="option"*)*
>
> I hope I was clear this time.
>
> Thanks
> --
> *From:* Tkinter-discuss  python.org> on behalf of Michael Lange 
> *Sent:* Tuesday, March 6, 2018 8:46 PM
> *To:* tkinter-discuss@python.org
> *Subject:* Re: [Tkinter-discuss] configure command
>
> Hi,
>
> On Tue, 6 Mar 2018 16:31:23 +
> adil gourinda  wrote:
>
> > In your example, is "width" a positional argument or a
> > positional-keyword argument (and if it is what is the parameter's
> > name) ?
>
> Not sure what you mean by that; I would tend to say the parameter's name
> is "width" ;)
>
> At
> https://www.tcl.tk/man/tcl8.4/TkCmd/panedwindow.htm#M33
> this is explained in more detail.
>
> Regards
>
> Michael
>
> .-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.
>
> Earth -- mother of the most beautiful women in the universe.
> -- Apollo, "Who Mourns for Adonais?" stardate 3468.1
> ___
> Tkinter-discuss mailing list
> Tkinter-discuss@python.org
> https://mail.python.org/mailman/listinfo/tkinter-discuss
>
> ___
> Tkinter-discuss mailing list
> Tkinter-discuss@python.org
> https://mail.python.org/mailman/listinfo/tkinter-discuss
>
>
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss


Re: [Tkinter-discuss] configure command

2018-03-07 Thread adil gourinda
For the last time, what is the parameter's name that accepts option's name as a 
string:

instance.configure(?!?!="option")

I hope I was clear this time.

Thanks

From: Tkinter-discuss 
 on behalf of 
Michael Lange 
Sent: Tuesday, March 6, 2018 8:46 PM
To: tkinter-discuss@python.org
Subject: Re: [Tkinter-discuss] configure command

Hi,

On Tue, 6 Mar 2018 16:31:23 +
adil gourinda  wrote:

> In your example, is "width" a positional argument or a
> positional-keyword argument (and if it is what is the parameter's
> name) ?

Not sure what you mean by that; I would tend to say the parameter's name
is "width" ;)

At
https://www.tcl.tk/man/tcl8.4/TkCmd/panedwindow.htm#M33
this is explained in more detail.

Regards

Michael

.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Earth -- mother of the most beautiful women in the universe.
-- Apollo, "Who Mourns for Adonais?" stardate 3468.1
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss