GithubHelp home page GithubHelp logo

Comments (6)

danya-gharbieh avatar danya-gharbieh commented on June 12, 2024 1

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.

Trekky12 avatar Trekky12 commented on June 12, 2024

Could you explain how you integrated the slideshow app in your application, e.g. by showing some code?

from kburns-slideshow.

Trekky12 avatar Trekky12 commented on June 12, 2024

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.

danya-gharbieh avatar danya-gharbieh commented on June 12, 2024

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.

Trekky12 avatar Trekky12 commented on June 12, 2024

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.

danya-gharbieh avatar danya-gharbieh commented on June 12, 2024

moving the folder works thanks a lot ,

from kburns-slideshow.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.