commit
8a4f86cbf6
|
@ -994,8 +994,10 @@ class Image(Element):
|
||||||
else:
|
else:
|
||||||
image = data
|
image = data
|
||||||
else: return
|
else: return
|
||||||
width, height = image.width(), image.height()
|
# width, height = image.width(), image.height()
|
||||||
self.tktext_label.configure(image=image, width=width, height=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
|
self.tktext_label.image = image
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
|
@ -2441,7 +2443,10 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
|
||||||
width, height = photo.width(), photo.height()
|
width, height = photo.width(), photo.height()
|
||||||
else:
|
else:
|
||||||
width, height = element_size
|
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
|
element.tktext_label.image = photo
|
||||||
# tktext_label.configure(anchor=tk.NW, 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])
|
element.tktext_label.pack(side=tk.LEFT, padx=element.Pad[0],pady=element.Pad[1])
|
||||||
|
|
|
@ -200,8 +200,17 @@ You will see a number of different styles of buttons, data entry fields, etc, in
|
||||||
### Installing
|
### Installing
|
||||||
|
|
||||||
pip install PySimpleGUI
|
pip install PySimpleGUI
|
||||||
or
|
On some systems you need to run pip3.
|
||||||
Simply download the file - PySimpleGUI.py and import it into your code
|
|
||||||
|
|
||||||
|
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
|
### 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.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
14
readme.md
14
readme.md
|
@ -200,8 +200,17 @@ You will see a number of different styles of buttons, data entry fields, etc, in
|
||||||
### Installing
|
### Installing
|
||||||
|
|
||||||
pip install PySimpleGUI
|
pip install PySimpleGUI
|
||||||
or
|
On some systems you need to run pip3.
|
||||||
Simply download the file - PySimpleGUI.py and import it into your code
|
|
||||||
|
|
||||||
|
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
|
### 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.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue