Giter Club home page Giter Club logo

Comments (13)

robertlugg avatar robertlugg commented on August 27, 2024

The following stackexchange request may be the same:
http://stackoverflow.com/questions/24754053/multiple-images-in-easygui

My question is on orientation. Is it a single row with multiple columns? Must the image count and choices count be the same. Instead, what about allowing users to put images on the buttons?

from easygui.

horstjens avatar horstjens commented on August 27, 2024

images on the buttons would be very cool indeed for my students!

from easygui.

robertlugg avatar robertlugg commented on August 27, 2024

Horst, i finally got around and made changes to buttonbox. Please see the demo. There is now a third type of buttonbox that allows multiple images and each image is a BUTTON. So, if you click on an image, the return is the full filename of that image. I checked this into 'develop' only. But, if you have a chance to see if I got it close to correct, I'd appreciate it.

from easygui.

robertlugg avatar robertlugg commented on August 27, 2024

image

image

from easygui.

horstjens avatar horstjens commented on August 27, 2024

this is so freaking cool i explode with excitement!
Thanks Robert!!!!!!!!!!!!!!!!!

i will report back as soon as i got it running..

On 12 March 2015 at 08:19, Robert M Lugg [email protected] wrote:

[image: image]
https://cloud.githubusercontent.com/assets/6054540/6613655/6bb09a02-c84d-11e4-9b9b-c0c2a2bdc1a7.png

[image: image]
https://cloud.githubusercontent.com/assets/6054540/6613665/792be34e-c84d-11e4-93d0-02f1351f6b5c.png


Reply to this email directly or view it on GitHub
#15 (comment).

Vorname: Horst
Nachname: JENS
mobil: +43 660 52 65 377
email: [email protected]
Firma: http://www.spielend-programmieren.at
Blog, Book, Podcast, Journal, Projects etc:
http://spielend-programmieren.at/de:projekte

from easygui.

horstjens avatar horstjens commented on August 27, 2024

Dear Robert,
i managed to download the developer branch from Github and tested
sucessfully the "buttonbox with choice (click an image)" function.

as far as i understood the code in the demo it is pretty straith-forward
and the box returns the picturename of the clicked picture.

this helps me a lot!

i noticed that i had to run python2 (instead of pyhton3) to run the demo,
do you develop using pyhton2 ?

this is very cool, thanks Robert!
I have a workshop for children at a linux-day in chemnitz, germany in 2
weeks, will start creating some cool game for the kids with the new easygui
functionality.

what can i do to help you?
(sorry, i was a bit full of my own troubles in the last months and not
helpful)

greetings from Vienna,
-Horst

On 12 March 2015 at 08:58, Horst JENS [email protected] wrote:

this is so freaking cool i explode with excitement!
Thanks Robert!!!!!!!!!!!!!!!!!

i will report back as soon as i got it running..

On 12 March 2015 at 08:19, Robert M Lugg [email protected] wrote:

[image: image]
https://cloud.githubusercontent.com/assets/6054540/6613655/6bb09a02-c84d-11e4-9b9b-c0c2a2bdc1a7.png

[image: image]
https://cloud.githubusercontent.com/assets/6054540/6613665/792be34e-c84d-11e4-93d0-02f1351f6b5c.png


Reply to this email directly or view it on GitHub
#15 (comment).

Vorname: Horst
Nachname: JENS
mobil: +43 660 52 65 377
email: [email protected]
Firma: http://www.spielend-programmieren.at
Blog, Book, Podcast, Journal, Projects etc:
http://spielend-programmieren.at/de:projekte

Vorname: Horst
Nachname: JENS
mobil: +43 660 52 65 377
email: [email protected]
Firma: http://www.spielend-programmieren.at
Blog, Book, Podcast, Journal, Projects etc:
http://spielend-programmieren.at/de:projekte

from easygui.

robertlugg avatar robertlugg commented on August 27, 2024

Great!

My desire is to continue to support python 2 and python 3. However, I develop on Python 2.7 and sometimes forget to make sure it runs on python 3.

If you want to use this for a class I should branch it to stabilize it. Please email and let me know.

from easygui.

horstjens avatar horstjens commented on August 27, 2024

i can make the adjustments for python3 myself if necessary (it was only an
"print without parantheses" error).

I hope you can conjure up another grid-like box so that it would be
possible to make a 2 x 2 grid or place text in grid fields. But those are
not necessary, what you did already with the multi-clickable-pictures box
is amazing enough.

You wrote me once an example about dynamically changing the gui elements
(like text or picture or title) would that be possible with the current
developement branch?

The only problem i see is that i need some easy way to install (and teach
kids how to install) the improved easygui. Kids in the workshop in 2 weeks
will use linux, but at home will most likeley use windows/mac. I prefer to
simply download a file or maybe a file and a subfolder with some files and
teach the kids to code put their programs in the same folder as the
downloaded easygui programs.

-Horst

On 12 March 2015 at 15:01, Robert M Lugg [email protected] wrote:

Great!

My desire is to continue to support python 2 and python 3. However, I
develop on Python 2.7 and sometimes forget to make sure it runs on python 3.

If you want to use this for a class I should branch it to stabilize it.
Please email and let me know.


Reply to this email directly or view it on GitHub
#15 (comment).

Vorname: Horst
Nachname: JENS
mobil: +43 660 52 65 377
email: [email protected]
Firma: http://www.spielend-programmieren.at
Blog, Book, Podcast, Journal, Projects etc:
http://spielend-programmieren.at/de:projekte

from easygui.

robertlugg avatar robertlugg commented on August 27, 2024

For the easy install, I hope that I can create an .egg file which is just a specially formatted zip file and that can be used if desired.

Turning the box I have now into a grid would be easy. You would need to send it a list of lists containing filename. For text do you want both image and text on the same button, or just one. i also want to support a 'None' as one of the list elements which would leave that cell empty.

from easygui.

robertlugg avatar robertlugg commented on August 27, 2024

Please refer to issue #56 for a further discussion on the .egg file for single-file distribution

from easygui.

horstjens avatar horstjens commented on August 27, 2024

Dear Robert,
your emails make my life better and better!

I will try out the .egg as described in Github.

For grid box, i think best would be that each grid cell has either a
picture, or a text string (can it be multi-line or do it automatic wordwrap
or can it be only single line?) or None (leave the cell blank).

giving lists of lists as parameters sound very straight-forward. It would
also be a perfect opportunity for teachers to introduce the topic of nested
lists so that it is instant useful for students!

greetings from Vienna,
-Horst

On 13 March 2015 at 04:38, Robert M Lugg [email protected] wrote:

Please refer to issue #56
#56 for a further
discussion on the .egg file for single-file distribution


Reply to this email directly or view it on GitHub
#15 (comment).

Vorname: Horst
Nachname: JENS
mobil: +43 660 52 65 377
email: [email protected]
Firma: http://www.spielend-programmieren.at
Blog, Book, Podcast, Journal, Projects etc:
http://spielend-programmieren.at/de:projekte

from easygui.

robertlugg avatar robertlugg commented on August 27, 2024

The button box in 'develop' supports a grid of images (which are buttons). It isn't quite complete yet. The return code is the filename, which makes sense. But if you use the same image in multiple grid locations (like a tick-tac-toe game), the program won't know which one was selected.

from easygui.

robertlugg avatar robertlugg commented on August 27, 2024

I've integrated the changes from develop into master. you can now create an image a list of images or a grid of images. It still needs some work since right now its hard to know which image was selected by the user.

from easygui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.