Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use common directory selector component #560

Open
hasii2011 opened this issue Sep 21, 2024 · 0 comments
Open

Use common directory selector component #560

hasii2011 opened this issue Sep 21, 2024 · 0 comments
Labels
API Update When APIs change
Milestone

Comments

@hasii2011
Copy link
Owner

Take the code in pyut.uiv2.preferencesv2.GeneralPreferences

 def _layoutDiagramsDirectory(self, sizedPanel: SizedPanel):
        directoryPanel: SizedStaticBox = SizedStaticBox(sizedPanel, label='Diagrams Directory')

        directoryPanel.SetSizerType('horizontal')
        directoryPanel.SetSizerProps(expand=True, proportion=2)

        textCtrl: TextCtrl = TextCtrl(directoryPanel)
        textCtrl.SetSizerProps(expand=False, proportion=5)

        selectButton: GenBitmapButton = GenBitmapButton(directoryPanel, ID_ANY, ImgFolder.embeddedImage.GetBitmap())
        selectButton.SetSizerProps(expand=False, proportion=1)

        textCtrl.SetValue(self._preferences.diagramsDirectory)
        textCtrl.SetEditable(False)

        self._textDiagramsDirectory = textCtrl
        sizedPanel.Bind(EVT_BUTTON, self._onSelectDiagramsDirectory, selectButton)

Make it a common component in codeallyadvanced.

I am going to create the component in pyfabricate and then move it the above

@hasii2011 hasii2011 added the API Update When APIs change label Sep 21, 2024
@hasii2011 hasii2011 added this to the Version 9.1.0 milestone Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Update When APIs change
Projects
None yet
Development

No branches or pull requests

1 participant