Implementing an email client

29 views
Skip to first unread message

Bence Hegyi

unread,
Oct 12, 2016, 6:19:10 PM10/12/16
to Kivy users support
Dear all,

I would like to implement an application, which I would use to manage my emails (the first step would be to list the unseen messages).
I have already implemented part of the application. I created two screens managed by a screen manager. 

The first screen is the login screen, which serves two purposes:
1) prompting the user for his/her credentials
2) basic input checking

I have implemented a class which loges into my account successfully (the class has been tested outside kivy) and calling one of its functions returns the list of unseen messages.
The second screen would be the main screen of the application, which means that, I would like to initialize my EmailAccount class using the provided credentials on the first screen and list my unseen e-mails.

Unfortunately, I'm having trouble, because I haven't been able to find out, how the values, entered on the first page could be used to initialize the class. 
Having created two dummy labels on the second screen, I could test that the corresponding fields are bound together properly (I can see the values, entered on the first screen on the labels of the second screen).
However, I would like to use the values in python code and not in the kv file to run the EmailAccount class in the background (maybe periodically).

Is it possible? Could someone, please help me?

I would greatly appreciate any help!

ZenCODE

unread,
Oct 13, 2016, 6:08:51 AM10/13/16
to Kivy users support
You could pass these as argument when you construct the class or set them as properties. Try, and post your attempts if you get stuck...:-)

Bence Hegyi

unread,
Oct 13, 2016, 5:23:41 PM10/13/16
to kivy-...@googlegroups.com
thank you for your reply!
I tried a couple of ways but always got stuck at the same step, which is binding the properties together and display them on the second screen.
Based on this tutorial, I created the prototype of my app. I have attached the .py and .kv files and for the sake of simplicity, I omitted the input check functionality.
I have also added some comment in the .py file about what the expected procedure would be. 
I would like to ask what I should do differently. I was thinking about initializing the email account once the button has been clicked. Would that be the better option?
If you have a better idea, could you please, help me?
Thank you for your help in advance!


2016-10-13 12:08 GMT+02:00 ZenCODE <zenkey....@gmail.com>:
You could pass these as argument when you construct the class or set them as properties. Try, and post your attempts if you get stuck...:-)

--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/i66B7YOAodU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

main.py
emailaccount.kv

Samuel Loury

unread,
Oct 18, 2016, 8:35:20 AM10/18/16
to Bence Hegyi, Kivy users support
Bence Hegyi <hegyi....@gmail.com> writes:

> I would like to implement an application, which I would use to manage my
> emails (the first step would be to list the unseen messages).
> I have already implemented part of the application. I created two screens
> managed by a screen manager.

I've a similar idea for some time and never went as far as implementing
something. I would like to see it and possibly contribute. Could you
put the code in some public revision control system somewhere?

--
Konubinix
GPG Key : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A
signature.asc

Goffi

unread,
Oct 18, 2016, 8:45:36 AM10/18/16
to kivy-...@googlegroups.com
Le mardi 18 octobre 2016, 14:34:53 CEST Samuel Loury a écrit :
> Bence Hegyi <hegyi....@gmail.com> writes:
> > I would like to implement an application, which I would use to manage my
> > emails (the first step would be to list the unseen messages).
> > I have already implemented part of the application. I created two screens
> > managed by a screen manager.
>
> I've a similar idea for some time and never went as far as implementing
> something. I would like to see it and possibly contribute. Could you
> put the code in some public revision control system somewhere?



Hi,


in our project (https://salut-a-toi.org) we are planing to implement email
too, but using a gateway to integrate it with XMPP (and we also plan to add
SMS, or anything actually). Our application is really advanced and I am
currently working on a Kivy frontend which I'm trying to port to Android (but
there are some trouble at the moment, c.f. my other messages on this list).

It may be interesting to collaborate if you are willing to do free software
(AGPL v3+).

you can also check my blog for more details: https://www.goffi.org .

Goffi

Reply all
Reply to author
Forward
0 new messages