Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Open an Excel file
Post: RE: Open an Excel file
(Feb-18-2020, 03:43 PM)buran Wrote: I don't know what oind of crap book you read or how you misunderstood the advise.
The crap book is: Automate the boring stuff with Python from Al Sweigart and may... |
|
Friend |
General Coding Help |
9 |
7,908 |
Feb-18-2020, 05:19 PM |
|
|
Thread: Open an Excel file
Post: RE: Open an Excel file
Yes i changed the file extension from come libre Office extention to xlsx. But as i said it was proposed in the book i am ready. And i can still open the file normally and edit it as if it was a real ... |
|
Friend |
General Coding Help |
9 |
7,908 |
Feb-18-2020, 03:27 PM |
|
|
Thread: Open an Excel file
Post: RE: Open an Excel file
As i said in my home computer i don't have microsoft office.
i use libre office. i have renamed the extention to xlsx as intructed in the book i am ready. So maybe that's why openpyxl doesn't work.
in... |
|
Friend |
General Coding Help |
9 |
7,908 |
Feb-18-2020, 02:19 PM |
|
|
Thread: Open an Excel file
Post: RE: Open an Excel file
didn't work
import pandas as pd
df = DataFrame.read(r'C:\Users\Desktop\Python\example.xlsx')Error:Traceback (most recent call last):
File "<pyshell#14>", line 1, in <module>
df = Da... |
|
Friend |
General Coding Help |
9 |
7,908 |
Feb-18-2020, 08:38 AM |
|
|
Thread: Open an Excel file
Post: Open an Excel file
Hi all,
I am trying to open an excel file (LibreOffice) with the following code:
import openpyxl
wb = openpyxl.load_workbook(r'C:\Users\user\Desktop\Python\example.xlsx')but i get the follwing error:
... |
|
Friend |
General Coding Help |
9 |
7,908 |
Feb-17-2020, 08:42 PM |
|
|
Thread: Chrome instead of IE
Post: Chrome instead of IE
Hi all,
i just read a little bit about the webbrowser and tried open google for example. so i did:
import webbrowser
webbrowser.open('https://www.google.com')it works, but it opens Internet explorer.... |
|
Friend |
Web Scraping & Web Development |
1 |
2,149 |
Feb-09-2020, 06:22 AM |
|
|
Thread: Shutil move if file exists in destination
Post: RE: Shutil move if file exists in destination
i guess it should be like this (destination instead of source):
if os.path.exists(r'C:\Users\user\Desktop\Destination\t.txt'):
os.remove(r'C:\Users\user\Desktop\Destination\t.txt')hmm i thought the... |
|
Friend |
General Coding Help |
2 |
6,754 |
Feb-02-2020, 01:45 PM |
|
|
Thread: Shutil move if file exists in destination
Post: Shutil move if file exists in destination
Hi all,
i am just learning about the modul shutil and tried to move a file to a destination folder.
It works. However if i try to run the script again and overwrite the file, it doesnt work, because ... |
|
Friend |
General Coding Help |
2 |
6,754 |
Feb-02-2020, 12:42 PM |
|
|
Thread: askdirectory
Post: askdirectory
Hi all,
i want to let the user select a path. i used the following
from tkinter.filedialog import askdirectory
path = askdirectory()it works, BUT, a small window from the tk module opens as well, a... |
|
Friend |
General Coding Help |
0 |
1,593 |
Aug-10-2019, 10:49 AM |
|
|
Thread: Dictionaries help
Post: RE: Dictionaries help
(Aug-01-2019, 02:07 PM)perfringo Wrote: Additional observation to ichabod801: there is no username validation, authentication is based only on pin. What does it mean?
well i saw sth similar in many ... |
|
Friend |
General Coding Help |
5 |
2,328 |
Aug-01-2019, 02:49 PM |
|
|
Thread: Group files according to first few characters in filename
Post: RE: Group files according to first few characters ...
i don't know why this shouldn't work, what exactly didn't work by using 'startswith':
if filename.startswith('...') # your five lettersYeah, an example would help understanding what you reall... |
|
Friend |
General Coding Help |
7 |
4,699 |
Aug-01-2019, 11:32 AM |
|
|
Thread: Button with Image Icon
Post: RE: Button with Image Icon
It works. Thanks a lot
but i never heard of that "partial"...i have to find out more about it |
|
Friend |
GUI |
2 |
6,815 |
Jul-25-2019, 09:39 AM |
|
|
Thread: Unable to update or refresh label text in tkinter
Post: RE: Unable to update or refresh label text in tkin...
i am not sure if i understood you, but if my first proposal is ok, then this should be changed too:
self.canvas.create_image(0, 0, anchor=NW, image=self.img) |
|
Friend |
GUI |
3 |
6,596 |
Jul-24-2019, 02:09 PM |
|
|
Thread: Unable to update or refresh label text in tkinter
Post: RE: Unable to update or refresh label text in tkin...
Shouldn't be sth like this :
img = Image.open('img.jpg')
self.img = ImageTk.PhotoImage(img)
self.label = Label(master, image=self.img, textvariable=self.text) |
|
Friend |
GUI |
3 |
6,596 |
Jul-24-2019, 10:46 AM |
|
|
Thread: Button with Image Icon
Post: Button with Image Icon
Hi again,
i am trying a simple gui, 2 buttons with an image as icon, in this exaple (banane, melone)...
if i press one of the button, the text will be displayed..
it is almost working, however the im... |
|
Friend |
GUI |
2 |
6,815 |
Jul-24-2019, 09:25 AM |
|
|
Thread: Gif with PhotoImage
Post: RE: Gif with PhotoImage
Managed to install it.
and everything is working. Thanks a lot DeaD_EyE :) |
|
Friend |
GUI |
3 |
5,282 |
Jul-23-2019, 10:23 PM |
|
|
Thread: Gif with PhotoImage
Post: RE: Gif with PhotoImage
I tried everything, watched hundred of Videos to install pip pillow or whatever black magic...it says successfully installed...
and still i get errors like :
Error:No module named 'PIL' |
|
Friend |
GUI |
3 |
5,282 |
Jul-23-2019, 08:51 PM |
|
|
Thread: Gif with PhotoImage
Post: Gif with PhotoImage
Hi all,
1. Question:
I am learning Python in Python2 book (didn't find a better python3 book)...in a long example (which i reduced to fow lines), i has been tried to import a gif picture using the cl... |
|
Friend |
GUI |
3 |
5,282 |
Jul-23-2019, 07:24 AM |
|
|
Thread: Scale at the Top
Post: RE: Scale at the Top
it works thanks
but why is it like that...it is a bug ?
i expect from_ = min ....to = max...to be the default... **dodgy** |
|
Friend |
GUI |
5 |
2,842 |
Jul-20-2019, 04:50 PM |
|
|
Thread: Scale at the Top
Post: RE: Scale at the Top
(Jul-20-2019, 11:49 AM)Yoriz Wrote: If you want the scale to start at a different value use its set method
good to know, but that won't solve my problem. my scale is from 4 to 50. And to go from 4 t... |
|
Friend |
GUI |
5 |
2,842 |
Jul-20-2019, 01:58 PM |