Python Forum
[PyQt] Resize button with window resize
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Resize button with window resize
#3
After a little while and a somewhat vague error, I figured out I needed to add
from PyQt5 import QtWidgets
to the imports section.

As for the wildcard, I only use it when testing small code.
I only import the modules I need on real projects.
Reply


Messages In This Thread
Resize button with window resize - by FesterJester - Dec-02-2018, 10:55 AM
RE: Resize button with window resize - by Alfalfa - Dec-02-2018, 04:48 PM
RE: Resize button with window resize - by FesterJester - Dec-03-2018, 12:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Interaction between Matplotlib window, Python prompt and TKinter window NorbertMoussy 3 600 Mar-17-2024, 09:37 AM
Last Post: deanhystad
  Centering and adding a push button to a grid window, TKinter Edward_ 15 5,051 May-25-2023, 07:37 PM
Last Post: deanhystad
  [Tkinter] Clicking on the button crashes the TK window ODOshmockenberg 1 2,272 Mar-10-2022, 05:18 PM
Last Post: deanhystad
  [PyQt] Can't get MDIarea to resize automatically with Main Window JayCee 4 3,519 Aug-02-2021, 08:47 PM
Last Post: JayCee
  how to resize image in canvas tkinter samuelmv30 2 17,890 Feb-06-2021, 03:35 PM
Last Post: joe_momma
Question closing a "nested" window with a button in PySimpleGUI and repeating this process Robby_PY 9 13,681 Jan-18-2021, 10:21 PM
Last Post: Serafim
  Closing window on button click not working kenwatts275 4 3,835 May-03-2020, 01:59 PM
Last Post: deanhystad
  [PyQt] dynamically resize custom widget fill remaining space ironcthulhu 1 11,394 Dec-31-2019, 09:45 PM
Last Post: Denni
  8 image grid with automatical image resize by screen resolution AlexanderO 3 7,001 Dec-29-2019, 02:20 PM
Last Post: Xavier_Roga
  [PySimpleGUI] error trying to resize Text element skratt 3 8,089 Dec-10-2019, 06:05 PM
Last Post: FullOfHelp

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020