Re: How do I use the data entered in a form?

2020-08-21 Thread Peter Otten
Steve wrote: > def makeform(root, fields): >entries = {} >for field in fields: ... >return entries > > if __name__ == '__main__': >root = Tk() >ents = makeform(root, fields) > > SR = (entries['Sensor_Reading'].get()) > print ("SR Outside = " + SR) > > ==

Re: Matrix of size 100*100- Meghna

2020-08-21 Thread Meghna Karkera
Dear Respected Sir, I will go through the links you provided and get back to you if there are doubts. Thanks Sincerely Meghna Raviraj Karkera On Sat, Aug 22, 2020, 01:45 dn via Python-list wrote: > On 22/08/2020 02:17, Meghna Karkera wrote: > > Dear Respected Sir > > > > I am Meghna, a PhD s

Re: Having trouble with Mock and exception side effects

2020-08-21 Thread Kushal Kumaran
You could attempt something like what is mentioned in https://docs.python.org/3/library/unittest.mock-examples.html#partial-mocking See below. "Joshua J. Kugler" writes: > Hello! I am using Mock to raise an exception in an function as a side > effect. > However, Mock is completely redefining

How do I use the data entered in a form?

2020-08-21 Thread Steve
I have a simple form that I copied/modified from a python web site. A lot of it makes sense but I do not see how the form in activated. Is there some call in there that I am just not seeing? How do I use the information entered into the form. Everything works here except for line 30 where I

[RELEASED] Python 3.5.10rc1 is released

2020-08-21 Thread Larry Hastings
On behalf of the Python development community, I'm pleased to finally announce the availability of Python 3.5.10rc1. Python 3.5 is in "security fixes only" mode.  This new version only contains security fixes, not conventional bug fixes, and it is a source-only release. Important Notice: T

Having trouble with Mock and exception side effects

2020-08-21 Thread Joshua J. Kugler
Hello! I am using Mock to raise an exception in an function as a side effect. However, Mock is completely redefining the exception itself turning it in to a MagickMock object, which generates the Python exception TypeError: catching classes that do not inherit from BaseException is not allowed

Re: Matrix of size 100*100- Meghna

2020-08-21 Thread dn via Python-list
On 22/08/2020 02:17, Meghna Karkera wrote: Dear Respected Sir I am Meghna, a PhD student. I have installed python in my ubuntu OS from your website recently and tried using spyder and jupyter. May I request you to help me with importing few matrices, each of size 100*100 in python from XLSX and

Re: Temporary text for multiple entries

2020-08-21 Thread dn via Python-list
On 22/08/2020 00:01, Ashanti Aggarwal wrote: I am working to make a form where I have added multiple entries. I wish to add temporary text on all of them, as the text to be deleted when clicked and to inserted again when focused out. I have done with the single entry but not able to find a sol

Matrix of size 100*100- Meghna

2020-08-21 Thread Meghna Karkera
Dear Respected Sir I am Meghna, a PhD student. I have installed python in my ubuntu OS from your website recently and tried using spyder and jupyter. May I request you to help me with importing few matrices, each of size 100*100 in python from XLSX and perform operations on the matrices like addi

Temporary text for multiple entries

2020-08-21 Thread Prashant Aggarwal
I am working to make a form where I have added multiple entries. I wish to add temporary text on all of them, as the text to be deleted when clicked and to inserted again when focused out. I have done with the single entry but not able to find a solution for multiple entries.Kindly suggest me a

Python Pandas

2020-08-21 Thread J Conrado
HI, I'm using Pandas to read my .xls file and I used the command to read it: df = pd.read_excel(filexcel, parse_dates=[0], dayfirst=True) and I had the day, month, year and hour correctly But, if I  run the same script inside a virtual environment, I had this error message:   File "xlst

Re: How to install your personal module/package on site.

2020-08-21 Thread Antoon Pardon
Op 21/08/20 om 01:49 schreef Cameron Simpson: On 16Aug2020 08:32, Marco Sulla wrote: Sorry, didn't read well, Apart the other suggestion, you (or your sysop) can create a private Pypi: https://pypi.org/project/private-pypi/ Even simpler, you can put a code repo path into your requirements.