Python Forum
[Tkinter] Trying to make Fond Dialog box
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Trying to make Fond Dialog box
#11
Hello,
I understand very well, your explanation is cool. I had the doubt if there could be functions that don't belong to a class, that in .Net there can't be, I now see in Python, yes.
About the packaging, how could I put the FontDialog class in a separate file and import it in the MainWindow file? Suppose the file is fontdialog.py.
Is it:
from fontdialog import FontDialog
or
import FontDialog
?
Thank you
Pablo
Reply
#12
If it's in the same working directory from fontdialog FontDialog will be fine
If it's in a sub directory then from subdirectory.fontdialog import FontDialog
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
Download my project scripts


Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How a QMainWindow can open a dialog? panoss 4 5,614 Feb-03-2022, 04:33 PM
Last Post: panoss
  [Tkinter] question for a tkinter dialog box RobertAlvarez424 2 3,037 Aug-25-2021, 03:08 PM
Last Post: RobertAlvarez424
  [Tkinter] cancelling open dialog gives empty string rwahdan 2 4,948 Jul-17-2021, 09:17 PM
Last Post: steve_shambles
  [WxPython] Return code when closing the dialog ioprst 1 3,995 Aug-13-2019, 11:47 AM
Last Post: jefsummers
  PyQT5 : Unable to Create Another Dialog While One is Open iMuny 3 5,239 Jul-17-2019, 11:40 AM
Last Post: iMuny
  [WxPython] Any dialog that allow user to select file OR folder? buran 3 5,508 Apr-03-2019, 06:33 PM
Last Post: Yoriz
  [WxPython] how to run the dialog from another py file royer14 0 3,220 Jul-02-2018, 05:33 AM
Last Post: royer14
  FileBrowser dialog reverendfuzzy 5 6,083 May-06-2018, 01:56 PM
Last Post: reverendfuzzy
  I'm trying to create a simple yes/no dialog box RedSkeleton007 15 24,127 Apr-25-2018, 05:10 PM
Last Post: nilamo
  About Dialog in PyQt5 on macOS cpuin 0 3,487 Jan-23-2018, 08:50 PM
Last Post: cpuin

Forum Jump:

User Panel Messages

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