Re: tkinter: widget to display set returned from database table

2019-06-20 Thread Rich Shepard

On Thu, 20 Jun 2019, MRAB wrote:


Here's a small example.


Thank you very much. Your example makes much more sense to me than do the
ones I've found on the web.

Best regards,

Rich
--
https://mail.python.org/mailman/listinfo/python-list


Re: tkinter: widget to display set returned from database table

2019-06-20 Thread Rich Shepard

On Thu, 20 Jun 2019, Terry Reedy wrote:


There is no sin is using less than all the features of a widget. Anyway,
think of the tree having one node, which you can hide (not show),
representing the table, and n leaves, representing the rows of the table,
which you do show.


Terry,

This explanation clarifies what I've read about the tkinter tree.


If you sort the selection by some categorical field, then you can make the
display hierarchical by adding expandable rows for values of the sort
field. Think of database reports where summary lines can be expanded and
contracted.


My current thinking is that the sorting will be done by the SQL statement
based on user input (and that's another widget I need to learn) so the
output in the treelist will be as correct.

Thanks very much,

Rich

--
https://mail.python.org/mailman/listinfo/python-list


EuroPython 2019: Beginners’ Day Workshop

2019-06-20 Thread M.-A. Lemburg
If you’re new to Python, you should come to our friendly, welcoming
and helpful Beginners’ Day Workshop. We cater to new Pythonistas of
all levels: from absolute beginners through to experienced programmers
encountering Python for the first time.


* https://ep2019.europython.eu/events/beginners-day/ *


What is Beginners’ Day ?


Beginners’ day welcomes and supports folks who are new to Python
programming. It takes place on Tuesday 9th July, from 9:30 - 16:00 at
the workshop venue, FHNW Campus Muttenz. Just in time to get you ready
for all the talks which follow on Wednesday, Thursday and Friday !
It’s also a great place to make friends with fellow attendees and
figure out how to get the most out of EuroPython.

Bring your laptop, because this will be a hands-on session!

The day will start with workshops to give you the chance to try out
Python in lots of different situations: making a game, creating a
website, programming embedded devices or telling stories with data (in
a Jupyter notebook). Later in the day you’ll have an opportunity to
further explore those aspects of Python which appeal to you with the
support of a team of experienced and helpful mentors. We’ll end the
day with a question and answer session about Python, EuroPython and
the wider Python ecosystem.

The emphasis will be in creating a fun, supportive and useful path
into the Python programming language and its community.


Sign up for Beginners’ Day
--

You will need a conference pass to attend, but otherwise, it’s free,
so if you’re thinking of coming to the conference, but you’re new to
Python or programming, this could be the session for you:

https://ep2019.europython.eu/registration/buy-tickets/

The session will be presented in English (although our mentors will
typically speak a few other languages as well).

If you’d like to come, please do register in advance for this session,
so that we know how to plan to make it the best yet. We need to know
the numbers for planing the workshop.

Sign up for Beginners’ Day here:


https://docs.google.com/forms/d/e/1FAIpQLScBSJ8y--ROBI7HDQ01H1Cn9RI9amC9mRoOJMEppOmbZv0pMA/viewform


Call for Mentors


The workshop is being organised by experienced Python programmer and
educator, Nicholas H.Tollervey.

Already know Python? Do you value working in an open, inclusive and
collaborative way? Want to develop your mentorship skills? Fantastic!

We’re looking for folks with the technical skills, patience, humour
and empathy to work with beginners who may come from a wide variety of
backgrounds and levels of experience. It’s rewarding, fun and a great
way to give back to the community.

We’d especially love to hear from you if you can add an extra language
to help non-English speakers feel comfortable asking questions, or if
you’ve never mentored before and want to try to share your knowledge
for the first time. This is a supportive environment for both beginner
programmers AND beginner mentors. :-)

Please sign up as a mentor on our mentor registration form:


https://docs.google.com/forms/d/e/1FAIpQLSdkphUVi_vplS7yvxI432R03BJPCapv-K29p1EPA0F5Tn8qhA/viewform


Dates and Venues


EuroPython will be held from July 8-14 2019 in Basel, Switzerland, at
the Congress Center Basel (CCB) for the main conference days (Wed-Fri)
and the FHNW Muttenz for the workshops/trainings/sprints days
(Mon-Tue, Sat-Sun).

Tickets can be purchased on our registration page:

https://ep2019.europython.eu/registration/buy-tickets/

For more details, please have a look at our website and the FAQ:

https://ep2019.europython.eu/faq


Help spread the word


Please help us spread this message by sharing it on your social
networks as widely as possible. Thank you !

Link to the blog post:

https://blog.europython.eu/post/185723885512/europython-2019-beginners-day-workshop

Tweet:

https://twitter.com/europython/status/1141675177400590336


Enjoy,
--
EuroPython 2019 Team
https://ep2019.europython.eu/
https://www.europython-society.org/

-- 
https://mail.python.org/mailman/listinfo/python-list


help with python37.dll

2019-06-20 Thread Julia Seacat
Hello,

I installed python 3.7 (64 bit) for my Windows computer and am trying to 
install pip but it is giving me an error that the code execution cannot proceed 
because python37.dll was not found. How do I install or reinstall this program?



Also I already subscribed to the list.



Thank you,

Julia

Julia Seacat

[cid:[email protected]]
424-269-3800 | 800-718-9853 f | 2321 Rosecrans Avenue, Suite 3270 | El Segundo, 
CA 90245 | www.terracottagroup.com

CONFIDENTIALITY NOTICE and DISCLAIMER:
The foregoing is neither an offer nor acceptance concerning any existing 
agreement. No offer or acceptance is valid as against the Lender unless signed 
in ink by an authorized officer of the Lender. No email from the Lender shall 
be deemed to constitute an offer or acceptance concerning any agreement. The 
Lender intends that there shall be no claims of estoppel and that no person 
shall change position in reliance upon this correspondence. Nothing in this 
correspondence is to be construed as a waiver, limitation, or release of any 
and all rights and remedies of the Lender.

This email message is intended only for the person or entity to which it is 
addressed and may contain confidential and/or privileged material. Any 
unauthorized review, use, disclosure or distribution is prohibited. If you are 
not the intended recipient, please contact the sender by reply email and 
destroy all copies of the original message. If you are the intended recipient 
but do not wish to receive communications through this medium, please so advise 
the sender immediately. Nothing in this communication should be interpreted as 
a digital or electronic signature that can be used to authenticate a contract 
or other legal document. In the event this information was obtained in or by 
the non-intended recipient and/or in error, please contact 424-269-3800 
immediately.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: help with python37.dll

2019-06-20 Thread MRAB

On 2019-06-20 16:50, Julia Seacat wrote:

Hello,

I installed python 3.7 (64 bit) for my Windows computer and am trying to 
install pip but it is giving me an error that the code execution cannot proceed 
because python37.dll was not found. How do I install or reinstall this program?


You should already have pip; it's installed when you install Python 3.7.
--
https://mail.python.org/mailman/listinfo/python-list


Difference between array( [1,0,1] ) and array( [ [1,0,1] ] )

2019-06-20 Thread Markos


Hi,

I'm studying Numpy and I don't understand the difference between


vector_1 = np.array( [ 1,0,1 ] )


with 1 bracket and


vector_2 = np.array( [ [ 1,0,1 ] ] )


with 2 brackets

The shape of vector_1 is:


vector_1.shape

(3,)

But the shape of vector_2 is:


vector_2.shape

(1, 3)

The transpose on vector_1 don't work:


vector_1.T

array([1, 0, 1])

But the transpose method in vector_2 works fine:


vector_2.T

array([[1],
   [0],
   [1]])


I thought that both vectors would be treated as an matrix of 1 row and 3 
columns.


Why this difference?

Any tip?

Thank you,
Markos
--
https://mail.python.org/mailman/listinfo/python-list