Beispiel #1
0
    def __init__(self, Master, *args, **kwargs):
        tk.Frame.__init__(self, Master)

        tk.BigLabel(self, text='EmailMaster').BasicGrid()
        tk.SmallLabel(self, text='By RealA10N').BasicGrid()

        tk.Frame.grid(self, *args, **kwargs)
Beispiel #2
0
    def __init__(self, Master, *args, **kwargs):
        tk.Frame.__init__(self, Master, *args, **kwargs)

        self._AddButton = tk.RegularButton(self, text="Add files", width=10)
        self._AddButton.grid(row=0, column=0)

        self._DeleteButton = tk.RegularButton(self,
                                              text="Delete selected",
                                              width=15)
        self._DeleteButton.grid(row=0, column=1)
Beispiel #3
0
    def AddFiles(self):
        NewFiles = tk.askopenfilenames(title="Selecte files")

        for FilePath in NewFiles:
            self._GetFilesListbox().AddItem(
                path.basename(FilePath))  # add basename to gui
            self._FilePaths.append(FilePath)  # add full path to list
Beispiel #4
0
    def __init__(self):
        tk.Tk.__init__(self)
        self.title("EmailMaster")  # change the os title of window
        self.resizable(False, False)

        TitleFrame(self, row=0, column=0, columnspan=2)

        LeftFrame = tk.Frame(self)
        LeftFrame.BasicGrid(row=1, column=0, sticky='n')

        RightFrame = tk.Frame(self)
        RightFrame.BasicGrid(row=1, column=1, sticky='n')

        self._EmailContentFrame = EmailContentFrame(LeftFrame, row=0, column=0)
        self._SendEmailFrame = SendEmailFrame(LeftFrame, row=1, column=0)
        self._EmailSenderFrame = EmailSenderFrame(RightFrame, row=0, column=0)
        self._AttachFilesFrame = AttachFilesFrame(RightFrame, row=1, column=0)
Beispiel #5
0
    def __init__(self,
                 Master,
                 Name,
                 DefaultText='',
                 EntryCh='',
                 width=30,
                 *args,
                 **kwargs):
        _DefaultNameFrame.__init__(self, Master, Name, *args, **kwargs)

        self._Widget = tk.RegularEntry(self, show=EntryCh, width=width)
        self._Widget.grid()

        self.GetConfig().set(DefaultText)
Beispiel #6
0
    def __init__(self, Master, *args, **kwargs):
        _DefaultLabelFrames.__init__(self, Master, "Attach Files", *args,
                                     **kwargs)

        self._FilesListbox = tk.RegularListox(self,
                                              selectmode='extended',
                                              width=20)
        self._FilesListbox.grid()

        self._FileButtons = AttachFilesButtons(self)
        self._FileButtons.BasicGrid()

        self._FileButtons.ConfigAddButtonFunc(lambda: self.AddFiles())
        self._FileButtons.ConfigDeleteButtonFunc(
            lambda: self.DeleteSelectedFile())

        self._FilePaths = []
Beispiel #7
0
    def __init__(self, Master, Name, width=30, height=10, *args, **kwargs):
        _DefaultNameFrame.__init__(self, Master, Name, *args, **kwargs)

        self._Widget = tk.RegularText(self, width=width, height=height)
        self._Widget.grid()
Beispiel #8
0
 def __init__(self, Master, Name, *args, **kwargs):
     tk.Frame.__init__(self, Master, *args, **kwargs)
     tk.SmallLabel(self, text='{}:'.format(Name)).BasicGrid(sticky='w')