Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Control the application using the keyboard
Post: Control the application using the keyboard

Hello, I have a problem with key control in my tkinter app. After pressing the key ("Enter", →, ←, +, Ctrl+S) I want to do my function. How do I set this control after pressing these keys? For example...
Christina GUI 1 1,667 Sep-21-2019, 10:28 PM
    Thread: Saving images
Post: RE: Saving images

Thank you, I soved it I add option defaultextension ='*.jpg' to asksaveasfilename and it works.
Christina GUI 10 16,658 Sep-16-2019, 05:59 PM
    Thread: Saving images
Post: RE: Saving images

Maybe I didn't make it clear. I'm writing my app in tkinter and I used tkinter filedialog (from tkinter.filedialog import asksaveasfilename). My code is like this (I wrote it in my first post): a = ph...
Christina GUI 10 16,658 Sep-15-2019, 06:26 PM
    Thread: Saving images
Post: RE: Saving images

The mode 'wb' does not work with image = Image.open(filename, 'wb'). It gives me error: Error:ValueError: bad mode 'wb'I want to user could write name of image and select file (using the function asks...
Christina GUI 10 16,658 Sep-14-2019, 09:40 PM
    Thread: Scrollbars on canvas
Post: RE: Scrollbars on canvas

woooee thank you for your advice. tkScrolledFrame works in my app.
Christina GUI 2 2,701 Sep-14-2019, 08:45 PM
    Thread: Saving images
Post: RE: Saving images

I imported PIL at the begining of my code: from PIL import Image, ImageTk . I have longer code (it is only part which I use to save photo) unfortunately I wrote it in different language so I must rewr...
Christina GUI 10 16,658 Sep-13-2019, 01:38 PM
    Thread: Scrollbars on canvas
Post: Scrollbars on canvas

Hello, I'm trying to create a image viewer in tkinter. I have problem with scrollbars in my app. I want horizontal and vertical scrollbars next to image when the image is zoomed. I use following code ...
Christina GUI 2 2,701 Sep-13-2019, 01:22 PM
    Thread: Saving images
Post: Saving images

Hello, I'm trying to create a image viewer in tkinter. I have problem with saving the images. On canvas I created an image. For save I don't use PhotoImage class but first version (photo = Image.open(...
Christina GUI 10 16,658 Sep-13-2019, 12:55 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020