Re: [Tutor] How to interact with the result of subprocess.call()

2016-12-26 Thread Alan Gauld via Tutor
On 25/12/16 16:33, Jim Byrnes wrote: >> (*)LO remembers its last screen setting and opens with them, >> if those screen settings are different than the ones you >> programmed for then navigation will be different and so on. > > I don't think I need to "know where stuff is" to manipulate LO. It

Re: [Tutor] Manipulating Dictionary values

2016-12-26 Thread Sunil Tech
Thank you Steven D'Aprano and Alan Gauld. On Mon, Dec 26, 2016 at 4:41 PM, Alan Gauld via Tutor wrote: > On 26/12/16 08:03, Sunil Tech wrote: > > Hi Team, > > > > Dictionary is like > > > > a = {'a': 'New', 'b': 'Two', 'l': [{'k': 'test', 'm': 'again'}, {'k': > > 'test', 'm': 'again'}]} > > > >

Re: [Tutor] Manipulating Dictionary values

2016-12-26 Thread Alan Gauld via Tutor
On 26/12/16 08:03, Sunil Tech wrote: > Hi Team, > > Dictionary is like > > a = {'a': 'New', 'b': 'Two', 'l': [{'k': 'test', 'm': 'again'}, {'k': > 'test', 'm': 'again'}]} > > I am trying to modify a value in the dictionary value at a['l'] So make life easy for yourself and get rid of the outer

Re: [Tutor] Manipulating Dictionary values

2016-12-26 Thread Steven D'Aprano
On Mon, Dec 26, 2016 at 01:33:37PM +0530, Sunil Tech wrote: > Hi Team, > > Dictionary is like > > a = {'a': 'New', 'b': 'Two', 'l': [{'k': 'test', 'm': 'again'}, {'k': > 'test', 'm': 'again'}]} > > I am trying to modify a value in the dictionary value at a['l'] & at 'm' > expecting it to be > >

Re: [Tutor] accessing attribute from python programming for absolute beginner

2016-12-26 Thread Alan Gauld via Tutor
On 26/12/16 04:08, syafiqah amir via Tutor wrote: > i did not achieve the desired outcome which is the name of the critters did > not print > #attribute Critter#Demonstrates creating and accessing object attributes > class Critter(object):"""A virtual pet"""def __init__(self,name):

Re: [Tutor] How to interact with the result of subprocess.call()

2016-12-26 Thread Peter Otten
Jim Byrnes wrote: > Is there a way to terminate subprocess and still keep LO open so > pykeyboard can send it keystrokes from the script? In theory you can open Libre Office from another thread, wait a moment and then send it keystrokes from the main thread. I managed to do this with the script

Re: [Tutor] Manipulating Dictionary values

2016-12-26 Thread Steven D'Aprano
On Mon, Dec 26, 2016 at 02:15:59PM +0530, Sunil Tech wrote: > ​​ > Can this be achievable in one liner? Why? Can you only fit one more line of code before your hard drive is full? -- Steve ___ Tutor maillist - Tutor@python.org To unsubscribe or ch

[Tutor] accessing attribute from python programming for absolute beginner

2016-12-26 Thread syafiqah amir via Tutor
I did the critter programming however i did not achieve the desired outcome which is the name of the critters did not print on the screen insted of self.name .I'm not sure what is wrong with this .Hope someone can help me.Thank you so much . #attribute Critter#Demonstrates creating and accessing

Re: [Tutor] Manipulating Dictionary values

2016-12-26 Thread Sunil Tech
​​ Can this be achievable in one liner? On Mon, Dec 26, 2016 at 1:33 PM, Sunil Tech wrote: > > Hi Team, > > Dictionary is like > > a = {'a': 'New', 'b': 'Two', 'l': [{'k': 'test', 'm': 'again'}, {'k': 'test', 'm': 'again'}]} > > I am trying to modify a value in the dictionary value at a['l'] & at

[Tutor] Manipulating Dictionary values

2016-12-26 Thread Sunil Tech
Hi Team, Dictionary is like a = {'a': 'New', 'b': 'Two', 'l': [{'k': 'test', 'm': 'again'}, {'k': 'test', 'm': 'again'}]} I am trying to modify a value in the dictionary value at a['l'] & at 'm' expecting it to be a = {'a': 'New', 'b': 'Two', 'l': [{'k': 'test', 'm': 'replaced'}, {'k': 'test',