Code Monkey home page Code Monkey logo

Comments (4)

dddomodossola avatar dddomodossola commented on July 22, 2024

Hello @WC802 ,

I'm unable to reproduce the problem. Can you show me how you use the GenericDialog?
However an usage example is within the widgets_overview_app.py (

self.dialog = gui.GenericDialog(title='Dialog Box', message='Click Ok to transfer content to main page', width='500px')
)
Note that when you call dialog.show you must pass the application instance as argument (
self.dialog.show(self)
).

Have a nice day,
Davide

from remi.

WC802 avatar WC802 commented on July 22, 2024

Thank you very much for your answer!
I was able to solve it with the example, which I didn't find earlier.
Also, I was trying to do a widget for error handling to make a warning pop up with a message that the user can dismiss. This is what GenericDialog does, except it has two buttons. Although I managed to add the class myself, was there already a class that did this? I couldn't find it in the documentation. Or a way to remove the button.

from remi.

dddomodossola avatar dddomodossola commented on July 22, 2024

The dialog buttons are 'cancel' and 'conf'. To hide the cancel button you can do:

mydialog.cancel.css_display = 'none'

from remi.

WC802 avatar WC802 commented on July 22, 2024

Thank you very much for answering so fast!

from remi.

Related Issues (20)

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.