Merge pull request #140 from MikeTheWatchGuy/Dev-latest

Dev latest
This commit is contained in:
MikeTheWatchGuy 2018-09-06 15:25:37 -04:00 committed by GitHub
commit 8a4f86cbf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 7 deletions

View File

@ -994,8 +994,10 @@ class Image(Element):
else:
image = data
else: return
width, height = image.width(), image.height()
self.tktext_label.configure(image=image, width=width, height=height)
# width, height = image.width(), image.height()
# width, height = image.width(), image.height()
# self.tktext_label.configure(image=image, width=width, height=height)
self.tktext_label.configure(image=image)
self.tktext_label.image = image
def __del__(self):
@ -2441,7 +2443,10 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
width, height = photo.width(), photo.height()
else:
width, height = element_size
element.tktext_label = tk.Label(tk_row_frame, image=photo, width=width, height=height, bd=border_depth)
if photo is not None:
element.tktext_label = tk.Label(tk_row_frame, image=photo, width=width, height=height, bd=border_depth)
else:
element.tktext_label = tk.Label(tk_row_frame, width=width, height=height, bd=border_depth)
element.tktext_label.image = photo
# tktext_label.configure(anchor=tk.NW, image=photo)
element.tktext_label.pack(side=tk.LEFT, padx=element.Pad[0],pady=element.Pad[1])

View File

@ -200,8 +200,17 @@ You will see a number of different styles of buttons, data entry fields, etc, in
### Installing
pip install PySimpleGUI
or
Simply download the file - PySimpleGUI.py and import it into your code
On some systems you need to run pip3.
pip3 install PySimpleGUI
On a Raspberry Pi, this is should work:
sudo pip3 install --upgrade pysimplegui
If for some reason you are unable to install using `pip`, don't worry, you can still import PySimpleGUI by downloading the file PySimleGUI.py and placing it in your folder along with the application that is importing it.
### Prerequisites
@ -2024,3 +2033,4 @@ In the hands of a competent programmer, this tool is **amazing**. It's a must-
The PySimpleGUI window that the results are shown in is an 'input' field which means you can copy and paste the results right into your code.

View File

@ -200,8 +200,17 @@ You will see a number of different styles of buttons, data entry fields, etc, in
### Installing
pip install PySimpleGUI
or
Simply download the file - PySimpleGUI.py and import it into your code
On some systems you need to run pip3.
pip3 install PySimpleGUI
On a Raspberry Pi, this is should work:
sudo pip3 install --upgrade pysimplegui
If for some reason you are unable to install using `pip`, don't worry, you can still import PySimpleGUI by downloading the file PySimleGUI.py and placing it in your folder along with the application that is importing it.
### Prerequisites
@ -2024,3 +2033,4 @@ In the hands of a competent programmer, this tool is **amazing**. It's a must-
The PySimpleGUI window that the results are shown in is an 'input' field which means you can copy and paste the results right into your code.