Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: SyntaxError: invalid syntax at run .py
Post: RE: SyntaxError: invalid syntax at run .py

Quote:hi. it says that sales.py is not defined Did you create a python document called sales.py? If you did you also need to import it or your program won't be able to communicate with it.
Anysja Homework 10 7,122 Aug-23-2018, 03:44 PM
    Thread: ???Can not convert from <U25 to float64.???
Post: RE: ???Can not convert from <U25 to float64.???

It seems as though the skimage.img_as_float is working, however it may be a different size than the float64? I am not entirely sure. I found this online: Byte order is: > Size is: 4 Name of data ...
Anysja Data Science 6 6,809 Aug-23-2018, 03:42 PM
    Thread: GUI Progress Bar
Post: RE: GUI Progress Bar

It takes about 5-10 seconds. It is hard to know when it has saved, which is why I need some sort of indicator it is finished. I will look at that indicator. Thank you for that idea, I didn't think of ...
Anysja GUI 6 6,533 Aug-22-2018, 06:54 PM
    Thread: GUI Progress Bar
Post: RE: GUI Progress Bar

Thank you so much, that works beautifully on its own. I have another question. I have a class (shown below*) that I am trying to implement this class in. While the CreatingFinalImage() function is run...
Anysja GUI 6 6,533 Aug-22-2018, 05:48 PM
    Thread: ???Can not convert from <U25 to float64.???
Post: RE: ???Can not convert from <U25 to float64.???

Try: image = skimage.img_as_float('ceta').
Anysja Data Science 6 6,809 Aug-22-2018, 03:42 PM
    Thread: SyntaxError: invalid syntax at run .py
Post: RE: SyntaxError: invalid syntax at run .py

Run is not a command inside of python. Try just putting sales.py.
Anysja Homework 10 7,122 Aug-22-2018, 03:32 PM
    Thread: GUI Progress Bar
Post: GUI Progress Bar

My program is trying to save an image which takes a little while. I am trying to create a progress bar that will let the user know when the image is saved. The code below is what I have so far. My iss...
Anysja GUI 6 6,533 Aug-21-2018, 10:54 PM
    Thread: Save JPG as Line Art
Post: RE: Save JPG as Line Art

I am trying to use SVG, is this a good approach?
Anysja GUI 1 2,205 Aug-21-2018, 04:59 PM
    Thread: Save JPG as Line Art
Post: Save JPG as Line Art

I am writing this program to generate a line that will engrave on a lazer. Currently it is generating an image that is a JPG. This will work with my laser but it will raster engrave instead of cut all...
Anysja GUI 1 2,205 Aug-21-2018, 03:23 PM
    Thread: Canvas Text Width/Height
Post: Canvas Text Width/Height

I am trying to figure out what the width and height of the text I am creating in Canvas are. I have tried using bbox as well as winfo_width()/winfo_height(). My pycharm doesn't seem to recognize winf...
Anysja GUI 0 5,127 Aug-20-2018, 11:11 PM
    Thread: Keeping Intersection of an Image Only
Post: RE: Keeping Intersection of an Image Only

I figured it out. I just search every pixel and if it is black I draw a line in a canvas at that same coordinate. It replicates the image, leaving only the black portion. This is exactly what I want.
Anysja General Coding Help 4 2,908 Aug-15-2018, 09:47 PM
    Thread: Protecting Python
Post: RE: Protecting Python

That's a smart idea, thank you.
Anysja General Coding Help 6 3,669 Aug-15-2018, 09:46 PM
    Thread: Protecting Python
Post: RE: Protecting Python

Thank you so much. I will take a look into that!
Anysja General Coding Help 6 3,669 Aug-15-2018, 06:49 PM
    Thread: Protecting Python
Post: RE: Protecting Python

That would be great, but I don't think my boss will go for that.
Anysja General Coding Help 6 3,669 Aug-15-2018, 05:45 PM
    Thread: Protecting Python
Post: Protecting Python

How do you all go about protecting your python programs? If I were to send an executable to someone, how do you prevent them from redistributing it to someone else?
Anysja General Coding Help 6 3,669 Aug-15-2018, 05:39 PM
    Thread: Deleting White from Bitmap
Post: RE: Deleting White from Bitmap

Okay, that makes sense. Thank you so much for your help!
Anysja GUI 8 5,416 Aug-14-2018, 04:04 PM
    Thread: Keeping Intersection of an Image Only
Post: RE: Keeping Intersection of an Image Only

Sorry, I just thought I posted the first one in the wrong thread.
Anysja General Coding Help 4 2,908 Aug-13-2018, 10:26 PM
    Thread: Deleting White from Bitmap
Post: RE: Deleting White from Bitmap

What does using the putpixel class do? Am I setting that specific pixel to black/white, or is my program deleting them/drawing them?
Anysja GUI 8 5,416 Aug-13-2018, 09:08 PM
    Thread: Deleting White from Bitmap
Post: RE: Deleting White from Bitmap

Okay, I tried doing this. I am not sure how to tell if it worked. I can't seem to save the bitmap. I had to change my code to look like this: def filter_image(image, color): alpha_mask = Image.ne...
Anysja GUI 8 5,416 Aug-13-2018, 07:00 PM
    Thread: Keeping Intersection of an Image Only
Post: Keeping Intersection of an Image Only

I am trying to take a black and white image, place red lines over the top and keep only the part of the red line that intersects with the black. Original Image: [attachment=449] Final Image: [attach...
Anysja General Coding Help 4 2,908 Aug-13-2018, 04:13 PM

User Panel Messages

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