On Tue, Sep 11, 2018 at 6:59 AM Carlos Rico <[email protected]> wrote:
> Hi guys, the thing is that as a starting project I would like to recreate > a MEL tool I made with Python and PySide2. It is just a window that has > buttons to open tools, that's all (you can see it in the video attached) > > After googling here and there, getting some code from here and there as > well and learning some of the basics I found myself trying to get > something working but I feel like I am not on the right path. > > And that is where you come into play guys. I just need some advice and > guidance to focus in the task at hand instead of trying to rush over much > documentation, if you will. I do not ask for code, just want to know > where to invest my time. > > The tool I want to create with PySide2 has to be able to read a json where > the button's data is stored (title, command, tooltip, syntax(MEL/Python), > ...) > > I started getting info here and there and I got where you see in the > Video(by the way the buttons work and open the tools).This is already > reading the data from a json file. Collapsable "frameLayouts" from a > snippet I came across, the famous I guess flowlayout PySide2 example, using > a QCompleter in the filter field (does not filter anything for now), well, > what you see in the video. So my question is, and sorry for the long post, > what do I need to achive my goal? > > Do I need a QListView, QListWidget, QItemDelegate, QCompleter? maybe there > is something already created that may serve me as a starting point, I do > not know, or maybe I need something else I do not know yet. Do I need to > sub-class my own widgets? Do I need to use the model/view thingy? As > always I am sure this can be done in many ways. I just need the easier one > :) > > This is pretty vague and requires studying your video to understand the nature of your question. It would be great if you could directly outline a single specific goal, what you have so far, and what you want it to do. You have listed some of the building blocks needed for creating a list that can be filtered by text. You would also need a QSortFilterProxyModel between your model and view, to be driven by the state of your filter box. > I'll keep digging, It is just that sometimes you have to realize that the > wheel was already invented. > > Thanks in advance. And sorry if this is very vague and you need more > information. > > > *Carlos Rico Adega*------------------------------------- > <http://www.vimeo.com/16765581> LinkedIn > <https://www.linkedin.com/in/carlos-rico-adega-3250586/> > [email protected] > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAFzJ14VDu0V--%3DGcP9FYbmEh%2Br8zhsau9xce9_KCCYt8kEebbA%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFzJ14VDu0V--%3DGcP9FYbmEh%2Br8zhsau9xce9_KCCYt8kEebbA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA30uwqKw1eNecRMuUgudmXpe_63AwB64AitNcBG0ijUDA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
