[TKinter]How to set LabelFrames font and color from option file

2017-12-14 Thread Beppe
Hi to everybody, I don't succeed in planning the value of the font and color in the LabelFrames using the option_db file, such as *LabelFrame*font: Helvetica 14 *LabelFrame*foreground: red exist a list of the keywordses to use? thanks beppe -- https://mail.python.org/mailman/listinfo/pytho

write your replace function in python

2017-12-14 Thread ayaskant . mantu111
Hi, I want to replace the spaces in a sting with hyphen with my own replace function or with using the pre-defined replace function. Can anybody help me with this issue??? Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: write your replace function in python

2017-12-14 Thread Chris Angelico
On Thu, Dec 14, 2017 at 9:08 PM, wrote: > Hi, > > I want to replace the spaces in a sting with hyphen with my own replace > function or with using the pre-defined replace function. > Can anybody help me with this issue??? > Ahh, the old "I want to" as a prefix for a homework assignment. Start

Answers to homework questions [WAS]: Re: Python homework

2017-12-14 Thread Lorenzo Sutton
Hi Roger, On 13/12/17 23:31, ROGER GRAYDON CHRISTMAN wrote: On Wed, Dec 13, 2017, Lorenzo Sutton wrote: On 05/12/17 06:33, nick martinez2 via Python-list wrote: I have a question on my homework. [...] For this kind of problem I think the collections module [1] can be very useful. In this c

Re: Please tell me how to execute python file in Ubuntu by double

2017-12-14 Thread Rhodri James
On 14/12/17 07:25, Chris Angelico wrote: So it's an imperfect solution even as far as it goes, and a highly limiting way to do things. I'm sure it made good sense back when MS-DOS file systems ruled the Windows world, and 8.3 was just the way of things. Even then there was RiscOS, which divorce

Re: Answers to homework questions [WAS]: Re: Python homework

2017-12-14 Thread Rhodri James
On 14/12/17 10:22, Lorenzo Sutton wrote: Hi Roger, On 13/12/17 23:31, ROGER GRAYDON CHRISTMAN wrote: On Wed, Dec 13, 2017, Lorenzo Sutton wrote: On 05/12/17 06:33, nick martinez2 via Python-list wrote: I have a question on my homework. [...] For this kind of problem I think the collection

Re: Please tell me how to execute python file in Ubuntu by double

2017-12-14 Thread Chris Angelico
On Thu, Dec 14, 2017 at 10:53 PM, Rhodri James wrote: > On 14/12/17 07:25, Chris Angelico wrote: >> >> So it's an imperfect solution even as far as it goes, and a highly >> limiting way to do things. I'm sure it made good sense back when >> MS-DOS file systems ruled the Windows world, and 8.3 was

Re: Answers to homework questions [WAS]: Re: Python homework

2017-12-14 Thread Rustom Mody
On Thursday, December 14, 2017 at 3:53:21 PM UTC+5:30, Lorenzo Sutton wrote: > Hi Roger, > > On 13/12/17 23:31, ROGER GRAYDON CHRISTMAN wrote: > > On Wed, Dec 13, 2017, Lorenzo Sutton wrote: > >> > > On 05/12/17 06:33, nick martinez2 via Python-list wrote: > >>> I have a question on my homework.

Re: Answers to homework questions [WAS]: Re: Python homework

2017-12-14 Thread Rustom Mody
On Thursday, December 14, 2017 at 7:02:56 PM UTC+5:30, Rustom Mody wrote: > On Thursday, December 14, 2017 at 3:53:21 PM UTC+5:30, Lorenzo Sutton wrote: > > Hi Roger, > > > > On 13/12/17 23:31, ROGER GRAYDON CHRISTMAN wrote: > > > On Wed, Dec 13, 2017, Lorenzo Sutton wrote: > > >> > > > On 05/12/1

Re: [TKinter]How to set LabelFrames font and color from option file

2017-12-14 Thread Gene Heskett
On Thursday 14 December 2017 04:35:02 Beppe wrote: > Hi to everybody, > > I don't succeed in planning the value of the font and color in the > LabelFrames using the option_db file, such as > > *LabelFrame*font: Helvetica 14 > *LabelFrame*foreground: red > > exist a list of the keywordses to use? >

Re: [TKinter]How to set LabelFrames font and color from option file

2017-12-14 Thread Peter Otten
Beppe wrote: > I don't succeed in planning the value of the font and color in the > LabelFrames using the option_db file, such as > > *LabelFrame*font: Helvetica 14 > *LabelFrame*foreground: red > > exist a list of the keywordses to use? >>> import tkinter as tk >>> root = tk.Tk() >>> lf = tk.L

Re: [TKinter]How to set LabelFrames font and color from option file

2017-12-14 Thread Beppe
Il giorno giovedì 14 dicembre 2017 15:18:31 UTC+1, Peter Otten ha scritto: > Beppe wrote: > > > I don't succeed in planning the value of the font and color in the > > LabelFrames using the option_db file, such as > > > > *LabelFrame*font: Helvetica 14 > > *LabelFrame*foreground: red > > > > exis

Re: [TKinter]How to set LabelFrames font and color from option file

2017-12-14 Thread Peter Otten
Beppe wrote: > Il giorno giovedì 14 dicembre 2017 15:18:31 UTC+1, Peter Otten ha scritto: >> Beppe wrote: >> >> > I don't succeed in planning the value of the font and color in the >> > LabelFrames using the option_db file, such as >> > >> > *LabelFrame*font: Helvetica 14 >> > *LabelFrame*foregr

Re: Please tell me how to execute python file in Ubuntu by double

2017-12-14 Thread Chris Angelico
On Fri, Dec 15, 2017 at 3:06 AM, Dennis Lee Bieber wrote: > C:\Users\Wulfraed>assoc .docx > .docx=Word.Document.12 > > C:\Users\Wulfraed>ftype word.document.12 > word.document.12="C:\Program Files\Microsoft > Office\Root\Office16\WINWORD.EXE" /n "%1" /o "%u" I'm almost afraid to ask... why "word.

Re: [TKinter]How to set LabelFrames font and color from option file

2017-12-14 Thread Beppe
Il giorno giovedì 14 dicembre 2017 16:36:24 UTC+1, Peter Otten ha scritto: > Beppe wrote: > > > Il giorno giovedì 14 dicembre 2017 15:18:31 UTC+1, Peter Otten ha scritto: > >> Beppe wrote: > >> > >> > I don't succeed in planning the value of the font and color in the > >> > LabelFrames using the

Re: [TKinter]How to set LabelFrames font and color from option file

2017-12-14 Thread Beppe
Il giorno giovedì 14 dicembre 2017 17:29:36 UTC+1, Beppe ha scritto: > Il giorno giovedì 14 dicembre 2017 16:36:24 UTC+1, Peter Otten ha scritto: > > Beppe wrote: > > > > > Il giorno giovedì 14 dicembre 2017 15:18:31 UTC+1, Peter Otten ha scritto: > > >> Beppe wrote: > > >> > > >> > I don't succe

Re: Python homework

2017-12-14 Thread edmondo . giovannozzi
Il giorno martedì 12 dicembre 2017 00:30:24 UTC+1, jlad...@itu.edu ha scritto: > On Thursday, December 7, 2017 at 4:49:52 AM UTC-8, edmondo.g...@gmail.com > wrote: > > > import numpy > > I teach Python to students at varying levels. As much as I love and use > Numpy in my regular work, I try

subprocess call question

2017-12-14 Thread Wanderer
This dos batch files works on windows 7 "C:\Program Files (x86)\DOOM 3\qoom3.exe" +set fs_game_base darkmod +set fs_game training_mission but this python subprocess.call doesn't subprocess.call(['C:/Program Files (x86)/DOOM 3/qoom3.exe', '+set fs_game_base darkmod', '+set fs_game training_miss

Re: subprocess call question

2017-12-14 Thread MRAB
On 2017-12-14 17:35, Wanderer wrote: This dos batch files works on windows 7 "C:\Program Files (x86)\DOOM 3\qoom3.exe" +set fs_game_base darkmod +set fs_game training_mission but this python subprocess.call doesn't subprocess.call(['C:/Program Files (x86)/DOOM 3/qoom3.exe', '+set fs_game_base

Re: [TKinter]How to set LabelFrames font and color from option file

2017-12-14 Thread Gene Heskett
On Thursday 14 December 2017 10:00:07 Beppe wrote: > Il giorno giovedì 14 dicembre 2017 15:18:31 UTC+1, Peter Otten ha scritto: > > Beppe wrote: > > > I don't succeed in planning the value of the font and color in the > > > LabelFrames using the option_db file, such as > > > > > > *LabelFrame*fon

Re: [TKinter]How to set LabelFrames font and color from option file

2017-12-14 Thread Gene Heskett
On Thursday 14 December 2017 11:29:03 Beppe wrote: > Il giorno giovedì 14 dicembre 2017 16:36:24 UTC+1, Peter Otten ha scritto: > > Beppe wrote: > > > Il giorno giovedì 14 dicembre 2017 15:18:31 UTC+1, Peter Otten ha scritto: > > >> Beppe wrote: > > >> > I don't succeed in planning the value of

Re: [TKinter]How to set LabelFrames font and color from option file

2017-12-14 Thread Beppe
Il giorno giovedì 14 dicembre 2017 19:28:53 UTC+1, Gene Heskett ha scritto: > On Thursday 14 December 2017 10:00:07 Beppe wrote: > > > Il giorno giovedì 14 dicembre 2017 15:18:31 UTC+1, Peter Otten ha > scritto: > > > Beppe wrote: > > > > I don't succeed in planning the value of the font and colo

Re: subprocess call question

2017-12-14 Thread Wanderer
That works. Thanks -- https://mail.python.org/mailman/listinfo/python-list

Accessing Self Inside Decorator with parameters

2017-12-14 Thread Brian Herman
I would like to access the instance variable of a class using a decorator with arguments: I used to do with with a decorator without arguments: def decorator(method): """ This method is a decorator to get a security token each time you have a service call. """ def wrapper(self, *args, **kw

Re: Accessing Self Inside Decorator with parameters

2017-12-14 Thread Chris Angelico
On Fri, Dec 15, 2017 at 6:44 AM, Brian Herman wrote: > However when I add the arguments decorator I cannot access the self of the > object that calls the decorator. > > def decorator_with_arguments(arg1, arg2): > def decorator(self, method): > """ This method is a decorator to get a se

Re: Please tell me how to execute python file in Ubuntu by double

2017-12-14 Thread Gregory Ewing
Rhodri James wrote: Even then there was RiscOS, which divorced file names from file types entirely. As did classic MacOS. I believe MacOSX also has the ability to store a file type as metadata, but it doesn't seem to be used much. -- Greg -- https://mail.python.org/mailman/listinfo/python-li

Let your code type-hint itself: introducing open source MonkeyType

2017-12-14 Thread breamoreboy
Seeing that type hinting is one of the big new features of Python I thought folks might find this https://engineering.instagram.com/let-your-code-type-hint-itself-introducing-open-source-monkeytype-a855c7284881 of interest. Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/li

Why does Jupyter Notebook searches files in folders, but PyCharm and Sublime Text does not?

2017-12-14 Thread C W
Hi all, I am confused why Jupyter Notebook searches files in subfolder, but PyCharm and Sublime Text 3 does not. Is there a rule? For example, I have a module or file called lr_utils.py in the current folder. If I run the following line in Jupyter, it's fine. > import lr_utils But in PyCharm, I

Re: write your replace function in python

2017-12-14 Thread Steve D'Aprano
On Thu, 14 Dec 2017 09:08 pm, ayaskant.mantu...@gmail.com wrote: > Hi, > > I want to replace the spaces in a sting with hyphen with my own replace > function or with using the pre-defined replace function. Can anybody help me > with this issue??? new_string = "string with spaces".replace(" ", "h