Re: Coding issue with XML for word document

2017-02-06 Thread Steven D'Aprano
On Mon, 06 Feb 2017 17:00:25 -0800, accessnewbie wrote: > I am constructing a sentence to insert into a word xml template. My code > is below > > #Create a list > if len(myList) > 0: > if len(myList) > 1: What is myList? Where does it come from? > testText = list_format(myList) + "

gmail api

2017-02-06 Thread Kelvid Pang
hi, I am trying to gmail api with reference to this URL: https://developers.google.com/gmail/api/quickstart/python But I couldn't find the 'gmail-python-quickstart.json' file. Any one can help? thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: search for a data in my browser via script

2017-02-06 Thread kelvidpang
On Monday, 6 February 2017 22:43:17 UTC+8, Meeran Rizvi wrote: > Hello guys, > Here i am writing a script which will open my chrome browser and opens the > URL www.google.com. > But how to search for a data via script. > for example i need to search for 'Rose' in google.com via script. > how to d

Re: Python installer hangs in Windows 7

2017-02-06 Thread kelvidpang
On Monday, 6 February 2017 13:16:24 UTC+8, Jean-Claude Roy wrote: >   I am trying to install Python 3.6.0 on a Windows 7 computer. > The download of 29.1 MB is successful and I get the nextwindow.  I choose the > "install now" selection and thatopens the Setup Program window. > Now the trouble st

RE: Coding issue with XML for word document

2017-02-06 Thread Deborah Swanson
I don't see any Python in your code. The python.org list isn't generally familiar with Microsoft proprietary code, which is often quite different from other versions. Try asking this question in Microsoft's Office/Word Document forums. Good luck! accessnew...@gmail.com wrote, on February 06, 2017

RE: How to add months to a date (datetime object)?

2017-02-06 Thread Deborah Swanson
MRAB wrote,on February 06, 2017 2:17 PM > > On 2017-02-06 21:54, John Gordon wrote: > > In "Deborah > > Swanson" writes: > > > >> bajimicb...@gmail.com wrote, on February 02, 2017 2:44 AM > >> > > >> > for start of month to the beginning of next month > >> > > >> > from datetime import timedelt

Coding issue with XML for word document

2017-02-06 Thread accessnewbie
I am constructing a sentence to insert into a word xml template. My code is below #Create a list if len(myList) > 0: if len(myList) > 1: testText = list_format(myList) + " dealers." else: myText = myList[0] + " dealer." #Contruct sentence #m

Re: How to add months to a date (datetime object)?

2017-02-06 Thread MRAB
On 2017-02-06 21:54, John Gordon wrote: In "Deborah Swanson" writes: bajimicb...@gmail.com wrote, on February 02, 2017 2:44 AM > > for start of month to the beginning of next month > > from datetime import timedelta > from dateutil.relativedelta import relativedelta > > end_date = start_date

Re: How to add months to a date (datetime object)?

2017-02-06 Thread John Gordon
In "Deborah Swanson" writes: > bajimicb...@gmail.com wrote, on February 02, 2017 2:44 AM > > > > for start of month to the beginning of next month > > > > from datetime import timedelta > > from dateutil.relativedelta import relativedelta > > > > end_date = start_date + relativedelta(months=

Re: search for a data in my browser via script

2017-02-06 Thread Michael Torrie
On 02/06/2017 07:43 AM, Meeran Rizvi wrote: > Hello guys, > Here i am writing a script which will open my chrome browser and opens the > URL www.google.com. > But how to search for a data via script. > for example i need to search for 'Rose' in google.com via script. > how to do that? > > > impo

Re: Modify Setup

2017-02-06 Thread Bryan Carey
Good evening! I just installed both python 3.4 & the PyCharm IDE this evening. While trying to run a simple "Hello World" program, I keep getting "Modify Setup" pop up windows. In addition to that, the output of my program is not displayed. Could you help me resolve my issue? On Sat, Feb 4, 2017 a

search for a data in my browser via script

2017-02-06 Thread Meeran Rizvi
Hello guys, Here i am writing a script which will open my chrome browser and opens the URL www.google.com. But how to search for a data via script. for example i need to search for 'Rose' in google.com via script. how to do that? import webbrowser url="www.google.com" chrome_path = 'C:\Program F

Strategies when hunting for dictionary corruption

2017-02-06 Thread Skip Montanaro
I'm wrapping some C++ libraries using pybind11. On the pybind11 side of things, I've written a simple type converter between Python's datetime.date objects and our internal C++ date objects. The first thing the type converter needs to do is to insure that the datetime C API is initialized: if

Re: Get Result based on the Top value

2017-02-06 Thread Meeran Rizvi
On Friday, February 3, 2017 at 5:35:13 PM UTC+5:30, Meeran Rizvi wrote: > Hello guys, > Here i am creating a GUI which will act as a search engine. > When you search for a data in search box it will fetch the results from the > very first page in browser and it is displayed in a Text widget > When

Re: Get Result based on the Top value

2017-02-06 Thread Meeran Rizvi
On Friday, February 3, 2017 at 5:35:13 PM UTC+5:30, Meeran Rizvi wrote: > Hello guys, > Here i am creating a GUI which will act as a search engine. > When you search for a data in search box it will fetch the results from the > very first page in browser and it is displayed in a Text widget > When

Re: Get Result based on the Top value

2017-02-06 Thread Peter Otten
Meeran Rizvi wrote: > Hello guys, > Here i am creating a GUI which will act as a search engine. > When you search for a data in search box it will fetch the results from > the very first page in browser and it is displayed in a Text widget When > the TOP value is 10 it should display only the firs

RE: Get Result based on the Top value

2017-02-06 Thread Deborah Swanson
Meeran Rizvi wrote, on February 03, 2017 4:05 AM > > Hello guys, > Here i am creating a GUI which will act as a search engine. > When you search for a data in search box it will fetch the > results from the very first page in browser and it is > displayed in a Text widget When the TOP value is

RE: How to add months to a date (datetime object)?

2017-02-06 Thread Deborah Swanson
bajimicb...@gmail.com wrote, on February 02, 2017 2:44 AM > > for start of month to the beginning of next month > > from datetime import timedelta > from dateutil.relativedelta import relativedelta > > end_date = start_date + relativedelta(months=delta_period) + > timedelta(days=-delta_period)