#๐Ÿ”’ HELP MEE | Position Buttons for PyQT

11 messages ยท Page 1 of 1 (latest)

crimson jacinth
chrome wedgeBOT
#

@crimson jacinth

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

ebon marten
#

what's the problem

crimson jacinth
# ebon marten what's the problem

There are no buttons in the 455 by 768 window, or they go off the screen, but it looks like 1 (when calling the on_scale method), to visually solve my problem and accurately place them, I even created new buttons (BUTTONS_SCALE) that copy BUTTONS.

ebon marten
#

use something like qt designer

#

i have a src/ui and a src/ux folder. src/ui contains all the generated stuff from designer, and src/ux mirrors the modules and classes of src/ui to customize the behaviour without messing with the generated stuff

#

use the designer to define the visual elements. that way you don't run into those issues

#

it may seem a bit convoluted, but it works very well

#

just separate the design from the behaviour

chrome wedgeBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.