Comments (6)
yeah sure I added a button on my GUI then when we press on the button your slideshow app will open as shown in the code below:
slideshow_btn = tk.Button(self.frame, text="Slideshow editor", font=('arial', 16), width=20, height=10
, command=self.slideShowApp)
def slideShowApp(self):
app3 = App()
app3.grab_set()
this will open your slideshow app ,
btw I fixed the above error by update app.py file parameter from "class App(tk.TK)" to "class App(tk.Toplevel)"
but I have another error so when slideshow app appears and then i press add slide below error appears:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\tkinter_init_.py", line 1921, in call
return self.func(*args)
File "C:\Users\danya\OneDrive\Documents\application\kburns\gui\app.py", line 1267, in addSlide
self.sm.addSlide(file, self.slide_selected)
File "C:\Users\danya\OneDrive\Documents\application\kburns\slideshow\SlideManager.py", line 171, in addSlide
slide = ImageSlide(self.ffmpeg_version, filename, output_width, output_height, slide_duration,
File "C:\Users\danya\OneDrive\Documents\application\kburns\slideshow\ImageSlide.py", line 20, in init
super().init(ffmpeg_version, file, output_width, output_height,
File "C:\Users\danya\OneDrive\Documents\application\kburns\slideshow\Slide.py", line 28, in init
self.transition = random.choice(self.getTransitions())
File "C:\Program Files\Python310\lib\random.py", line 378, in choice
return seq[self._randbelow(len(seq))]
IndexError: list index out of range
any idea about this error ?
from kburns-slideshow.
Could you explain how you integrated the slideshow app in your application, e.g. by showing some code?
from kburns-slideshow.
Actually I didn't test embedding the application in another application. Let me look into it.
Could you provide a small running example code to show the problem? You don't need to provide your application but a small runnable example.
I think the error message has to do with the transition folder. Did you have the folder in the correct location?
from kburns-slideshow.
okay sure
kindly find a small runnable application in this link : https://drive.google.com/file/d/123EGl2Htv20XneM8qFh1WGJoyteNz5tl/view?usp=sharing
Thanks in advanced
from kburns-slideshow.
Hey @danya-gharbieh,
I've tested your code and you should move the folder "transitions" from the subfolder "kburns" to the root directory of the application. This solves the error messages.
The reason for that is that the possible transitions are searched from this folder which is referenced from the root directory (os.getcwd()
):
def getTransitions(self):
return [package_name for importer, package_name, _ in pkgutil.iter_modules([os.path.join(os.getcwd(), "transitions")])]
from kburns-slideshow.
moving the folder works thanks a lot ,
from kburns-slideshow.
Related Issues (13)
- Help Getting this to work HOT 2
- GUI AttributeError HOT 8
- Can`t start project in cli HOT 1
- Sync Video to audio button HOT 1
- I can't add audio file version 1.5 windows EXE HOT 3
- Creation of temporary files ffmpeg is hardcoded to fixed commandline (ultrafast etc.) HOT 4
- Can't run on macOS HOT 3
- ffmpeg-video-slideshow-scripts transitions HOT 1
- "loopable": true creates ffmpeg error HOT 1
- Subtitles and Slides sync option HOT 3
- How Can I Use Zoom and Pan Effects in Python Code HOT 4
- Cannot import name 'ImageTk' from 'PIL' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kburns-slideshow.