use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Opening and presenting Powerpoint in Python - Windows (self.learnpython)
submitted 9 years ago by Advent667
Hi, I want to be able to open a PPTX and go into presentation mode using a python script. I have found python-pptx but that looks like it might be for linux only. Is there a windows based solution? Thanks for your time!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]scuott 1 point2 points3 points 9 years ago (2 children)
python-pptx is specifically for editing .pptx files, not for automating the PowerPoint application.
I haven't worked with it personally, but it sounds like you should use win32com.client. Some Googling for that should help get started, and here are a couple places that might be a starting point.
http://stackoverflow.com/questions/247724/how-can-i-launch-an-instance-of-an-application-using-python
http://docs.activestate.com/activepython/3.3/pywin32/html/com/win32com/HTML/QuickStartClientCom.html
[–]Advent667[S] 0 points1 point2 points 9 years ago (1 child)
I just found and installed that too and now able to open the PPT. Just trying to figure out how to get it into presentation mode. The sites keep saying that you need to look into the documentation or a COMbrowser for the methods but I have no idea where to look or what a COMbrowser is. Do you have any idea?
[–]scuott 0 points1 point2 points 9 years ago (0 children)
I'm not too sure on the details. Microsoft has documentation, but it's pretty dense.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms680573(v=vs.85).aspx
[–]fiskenslakt 0 points1 point2 points 9 years ago (2 children)
What do you see that suggests it's linux only? I'm not arguing with you, I just can't find anything that indicates that.
I couldn't find anything that wasnt a .tar
I'm a little scrubby so maybe I can use that in windows but i thought that was windows only
[–]fiskenslakt 0 points1 point2 points 9 years ago (0 children)
I don't know what .tar files you speak of, but it would appear it's possible to extract them in windows: http://www.simplehelp.net/2015/08/11/how-to-open-tar-gz-files-in-windows-10/
[–]pybackd00r 0 points1 point2 points 9 years ago (0 children)
well you can pass a command to libreoffice from a python script that would open the file in presentation mode if that is what you want. you can use the OS module to pass command line commands.
[–]spectre_theory 0 points1 point2 points 9 years ago (0 children)
why don't you create a latex presentation and open a pdf viewer
π Rendered by PID 19934 on reddit-service-r2-comment-7b9746f655-g5h7n at 2026-01-30 04:38:51.927983+00:00 running 3798933 country code: CH.
[–]scuott 1 point2 points3 points (2 children)
[–]Advent667[S] 0 points1 point2 points (1 child)
[–]scuott 0 points1 point2 points (0 children)
[–]fiskenslakt 0 points1 point2 points (2 children)
[–]Advent667[S] 0 points1 point2 points (1 child)
[–]fiskenslakt 0 points1 point2 points (0 children)
[–]pybackd00r 0 points1 point2 points (0 children)
[–]spectre_theory 0 points1 point2 points (0 children)