easygui icon indicating copy to clipboard operation
easygui copied to clipboard

feature request: gridbox

Open horstjens opened this issue 11 years ago • 13 comments

a box that can display more than one image, and buttons like buttonbox

horstjens avatar Dec 02 '14 08:12 horstjens

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?

robertlugg avatar Dec 17 '14 07:12 robertlugg

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

horstjens avatar Dec 17 '14 15:12 horstjens

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.

robertlugg avatar Mar 12 '15 07:03 robertlugg

image

image

robertlugg avatar Mar 12 '15 07:03 robertlugg

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 https://github.com/robertlugg/easygui/issues/15#issuecomment-78434122.

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

horstjens avatar Mar 12 '15 07:03 horstjens

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 https://github.com/robertlugg/easygui/issues/15#issuecomment-78434122.

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

horstjens avatar Mar 12 '15 08:03 horstjens

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.

robertlugg avatar Mar 12 '15 14:03 robertlugg

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 https://github.com/robertlugg/easygui/issues/15#issuecomment-78484501.

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

horstjens avatar Mar 12 '15 15:03 horstjens

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.

robertlugg avatar Mar 13 '15 03:03 robertlugg

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

robertlugg avatar Mar 13 '15 03:03 robertlugg

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 https://github.com/robertlugg/easygui/issues/56 for a further discussion on the .egg file for single-file distribution

— Reply to this email directly or view it on GitHub https://github.com/robertlugg/easygui/issues/15#issuecomment-78776948.

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

horstjens avatar Mar 13 '15 06:03 horstjens

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.

robertlugg avatar May 14 '15 10:05 robertlugg

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.

robertlugg avatar Jan 02 '16 01:01 robertlugg