GUI with web-browser using Django, Python 3

93 views
Skip to first unread message

Aura

unread,
May 4, 2015, 11:28:57 AM5/4/15
to django...@googlegroups.com

I want to make a py-file by GUI. The GUI I want is based on web-browser (chrome, safari). So I use Django.

The step-by-step idea is:

  1. I open the web-browser (as GUI, not to access internet). On the web-browser, there are two blanks and a "Generate" button, like

    a = ??

    filename = ??

    "Generate"

    (Here ?? is blank waiting for filling.)

  2. I fill like: a = [1,2,3,4], and filename = MyFile

  3. Click the "Generate" button

    Then A py-file "MyFile.py" is generated in an aimed folder. In the file, there is a python code

    a = [1,2,3,4]
  4. I plot a figure by

    import matplotlib.pyplot as plt
    plt.plot(a,a)

    It will generate a figure. I want this figure to be shown on the web-browser.

I am using Python 3.

Can you please show me how to do the 4 steps with Django? Thanks!

Gergely Polonkai

unread,
May 4, 2015, 1:05:38 PM5/4/15
to django...@googlegroups.com

Hello,

you should walk through the Django tutorial[1] to get as idea on how to use it. However, if this is the sole problem, I think Django is overkill, a pure WSGI page would suffice.

Best,
Gergely

[1] https://docs.djangoproject.com/en/1.8/intro/tutorial01/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d4a8bc37-a838-40a1-ac21-48ebd335d8d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages