Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Using variable from a class in another .py script
Post: RE: Using variable from a class in another .py scr...
Ok thanks for the help, I understand now. |
|
keegan_010 |
General Coding Help |
4 |
2,995 |
Mar-25-2020, 07:47 AM |
|
|
Thread: Using variable from a class in another .py script
Post: RE: Using variable from a class in another .py scr...
(Mar-25-2020, 07:09 AM)SheeppOSU Wrote: You can import the class into a python file like this from [Name of Python File] import [Name Of Class] as [Variable Nickname for class] if they're in the sam... |
|
keegan_010 |
General Coding Help |
4 |
2,995 |
Mar-25-2020, 07:27 AM |
|
|
Thread: Using variable from a class in another .py script
Post: Using variable from a class in another .py script
Hi, I am trying to get a variable that I set in a class into another .py file. A snippet of the code below:
class Ui_MainWindow(object): #this is the class of the first file, there is more stuff in he... |
|
keegan_010 |
General Coding Help |
4 |
2,995 |
Mar-25-2020, 07:04 AM |
|
|
Thread: PyQt5: Iterate through rows to check for a value
Post: RE: PyQt5: Iterate through rows to check for a val...
Don't worry, I got it working, I just had to set the range to 1, rowPosition. |
|
keegan_010 |
GUI |
2 |
1,779 |
Mar-23-2020, 11:30 PM |
|
|
Thread: PyQt5: Iterate through rows to check for a value
Post: PyQt5: Iterate through rows to check for a value
Hi, I am trying to use a for loop to check every row of a table for a certain value and then either add 1 or 0 to a list. I am currently trying:
for row in range(rowPosition):
... |
|
keegan_010 |
GUI |
2 |
1,779 |
Mar-23-2020, 08:50 AM |
|
|
Thread: Qpython3 error
Post: RE: Qpython3 error
Hi,
Your problem is that on line 13, you are missing an extra bracket at the end. Also your control variable should be on global.
Hope it helps and that I am not too late. **smile** |
|
keegan_010 |
General Coding Help |
3 |
2,695 |
Mar-06-2019, 06:38 AM |
|
|
Thread: How to learn more?
Post: RE: How to learn more?
Just find online courses. Also make sure you start right from the basics instead of the more advanced stuff. |
|
keegan_010 |
News and Discussions |
5 |
3,422 |
Mar-06-2019, 06:24 AM |
|
|
Thread: [split] Python Pillow - Photo Manipulation
Post: [split] Python Pillow - Photo Manipulation
Hi,
I am trying to use pillow for an online python photo manipulation course, I am only starting at the basics one of my tasks is to write a program converts an image to a sepia filter. It says that I... |
|
keegan_010 |
General Coding Help |
1 |
2,979 |
Oct-11-2018, 09:07 AM |
|
|
Thread: Python Pillow - Photo Manipulation
Post: RE: Python Pillow - Photo Manipulation
Hi j.crater,
Thanks for your help but I figured out where I went wrong. The course is on a website called Grok, and the course is called Investigating Images. Although you have to pay for the course, ... |
|
keegan_010 |
General Coding Help |
2 |
2,919 |
Oct-11-2018, 03:49 AM |
|
|
Thread: Python Pillow - Photo Manipulation
Post: Python Pillow - Photo Manipulation
Hi,
I am trying to use pillow for an online python photo manipulation course, I am only starting at the basics one of my tasks is to write a program which keeps only the blue channel from an image. Th... |
|
keegan_010 |
General Coding Help |
2 |
2,919 |
Oct-10-2018, 08:57 AM |
|
|
Thread: py2exe
Post: RE: py2exe
Thank you for your time but it still has not worked. All it says is:
'$' is not recognized as an internal or external command,
operable program or batch file.
I will keep surfing the web to see i... |
|
keegan_010 |
General Coding Help |
4 |
4,520 |
Aug-22-2018, 07:48 AM |
|
|
Thread: py2exe
Post: py2exe
Hello,
I am trying to use py2exe.
I have already have my python file as well as the setup file for it which goes like this:
from distutils.core import setup
import py2exe
setup (console=['test.py'])T... |
|
keegan_010 |
General Coding Help |
4 |
4,520 |
Aug-21-2018, 08:49 AM |
|
|
Thread: Sending E-mails
Post: RE: Sending E-mails
Hello Again,
Thank you it has worked. I already did this, but for some reason it didn't work but I did it again and now works fine.
Thank You Both |
|
keegan_010 |
General Coding Help |
3 |
4,188 |
Aug-21-2018, 08:06 AM |
|
|
Thread: Sending E-mails
Post: Sending E-mails
Hello,
I am trying to just learn how to send e-mails with python. I have found some code online and I am trying to use it but an error keeps appearing. This is the code I am trying to use.
import smtp... |
|
keegan_010 |
General Coding Help |
3 |
4,188 |
Aug-21-2018, 07:22 AM |
|
|
Thread: How do I get rid of certain text
Post: How do I get rid of certain text
Hello, I am pretty new to python and wanted to make a simple program that tells you how long you have been alive for. All I have so far is:
import datetime
day = int(input ("What day were you born e.... |
|
keegan_010 |
General Coding Help |
2 |
2,240 |
Aug-14-2018, 09:15 AM |
|
|
Thread: IDLE crash using special characters?
Post: RE: IDLE crash using special characters?
(Feb-09-2018, 01:55 PM)reikonaga Wrote: Hey there!
I'm starting to learn python and in one of the classes I noticed when I tried to do 2^2 and then the IDLE crashes when i try to input the characte... |
|
keegan_010 |
General Coding Help |
6 |
4,755 |
Aug-06-2018, 07:37 AM |
|
|
Thread: candy crush game
Post: RE: candy crush game
All it does is counts to 100. **angry** |
|
keegan_010 |
Game Development |
4 |
12,300 |
Aug-04-2018, 04:20 AM |
|
|
Thread: Pausing a Script
Post: RE: Pausing a Script
Not too sure, sorry but you can see if this helps.
https://docs.python.org/3/library/time.html |
|
keegan_010 |
General Coding Help |
4 |
3,827 |
Aug-04-2018, 04:09 AM |
|
|
Thread: How to Crash a Computer
Post: How to Crash a Computer
I am new to this forum but here is some simple code that you can run to crash a computer.
import webbrowser
webbrowser.open('https://www.google.com/')
webbrowser.open('https://www.google.com/')
webbro... |
|
keegan_010 |
General Coding Help |
6 |
4,262 |
Aug-04-2018, 04:03 AM |