Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Pyinstaller/MEIPASS issues
Post: RE: Pyinstaller/MEIPASS issues

Here is where the original code came from: https://github.com/mukkachaitanya/Password-Manager I want to bundle with Pyinstaller to a stand alone exe without the python files accessible. Having issues...
kristrek General Coding Help 1 5,297 Jan-04-2018, 07:42 PM
    Thread: Pyinstaller/MEIPASS issues
Post: Pyinstaller/MEIPASS issues

I'm having a terrible time trying to incorporate getting to the temp MEIPASS file in this section for bundling with Pyinstaller. Pyinstaller makes the exe, but it fails when running. It isn't finding ...
kristrek General Coding Help 1 5,297 Nov-08-2017, 08:30 PM
    Thread: How to use a list of floats
Post: RE: How to use a list of floats

I'm not sure. I borrowed the code for converting bytes to MB. There was no total=[] outside of it, but when I add it in, I still get the float error. Below, total and s are the same, but both give err...
kristrek General Coding Help 14 9,505 Jan-25-2017, 09:30 PM
    Thread: How to use a list of floats
Post: RE: How to use a list of floats

When I tried append() it said I can't do that to a tuple. So not a list. But, I still get a float error when trying enumerate(). I'm trying simplify the code to less lines.
kristrek General Coding Help 14 9,505 Jan-25-2017, 08:37 PM
    Thread: How to use a list of floats
Post: RE: How to use a list of floats

I need the accuracy of the float numbers so I can't round them to integers. Wavic: Do you mean something like: total = list(s) I tried that and still got a float error.
kristrek General Coding Help 14 9,505 Jan-25-2017, 06:44 PM
    Thread: How to use a list of floats
Post: RE: How to use a list of floats

Stripping out the GUI still gives the error: Error:Traceback (most recent call last):   File "C:\Users\kb\Desktop\Python\test2.py", line 36, in <module>     for fred in total: TypeError: 'float'...
kristrek General Coding Help 14 9,505 Jan-25-2017, 05:02 PM
    Thread: How to use a list of floats
Post: RE: How to use a list of floats

This asks for a file path and returns the size of only avi files in the folder. I need to do further math with these numbers, which is where I am stuck. Things in """ section and # areas are things I'...
kristrek General Coding Help 14 9,505 Jan-24-2017, 03:26 PM
    Thread: How to use a list of floats
Post: How to use a list of floats

How can make a list of floats useful if you can't iterate through them? I've tried things like:               fred = ', '.join(total)     fred = map(float, fred)     fred = [float(x) for x in total]...
kristrek General Coding Help 14 9,505 Jan-23-2017, 09:28 PM
    Thread: Arguments in function for button command
Post: RE: Arguments in function for button command

Thank you for the input. I removed the classes and got it to work. Thanks Larz60+ for trying to help.
kristrek GUI 14 28,192 Jan-11-2017, 09:16 PM
    Thread: Arguments in function for button command
Post: RE: Arguments in function for button command

Here is the entire thing. It works up to hitting the calculate button. from Tkinter import * root = Tk() root.geometry("450x350+200+100") class FilmCalc(Frame):        def __init__(self, parent):  ...
kristrek GUI 14 28,192 Jan-06-2017, 02:40 PM
    Thread: Arguments in function for button command
Post: RE: Arguments in function for button command

That gives a different error: Error:Traceback (most recent call last):   File "C:\Users\kb\Desktop\Python\GUIcalc2.py", line 12, in <module>     class FilmCalc(Frame):   File "C:\Users\kb\Deskt...
kristrek GUI 14 28,192 Jan-05-2017, 07:26 PM
    Thread: Arguments in function for button command
Post: RE: Arguments in function for button command

Error:Exception in Tkinter callback Traceback (most recent call last):   File "C:\Python27\lib\lib-tk\Tkinter.py", line 1536, in __call__     return self.func(*args) TypeError: go() takes exactly 2 ar...
kristrek GUI 14 28,192 Jan-05-2017, 06:16 PM
    Thread: Arguments in function for button command
Post: RE: Arguments in function for button command

It's the command for the calcButton.
kristrek GUI 14 28,192 Jan-05-2017, 02:15 PM
    Thread: Arguments in function for button command
Post: RE: Arguments in function for button command

Yes. It makes the window and fields correctly, but fails when pressing the calculate button. from Tkinter import * root = Tk() root.geometry("450x350+200+100") class FilmCalc(Frame):        def __i...
kristrek GUI 14 28,192 Jan-04-2017, 09:31 PM
    Thread: Arguments in function for button command
Post: RE: Arguments in function for button command

Sorry. Here's more. class FilmCalc(Frame):      def __init__(self, parent):        Frame.__init__(self, parent)            self.parent = parent        self.initUI()            def initUI(self):       ...
kristrek GUI 14 28,192 Jan-04-2017, 06:15 PM
    Thread: Arguments in function for button command
Post: Arguments in function for button command

New to Python. No matter what I enter, it doesn't like the arguments in the function. Appreciate any help. Error:Exception in Tkinter callback Traceback (most recent call last):   File "C:\Python27\li...
kristrek GUI 14 28,192 Jan-04-2017, 04:58 PM

User Panel Messages

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