Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,921
» Latest member: miltontkdal
» Forum threads: 37,567
» Forum posts: 170,722

Full Statistics

Online Users
There are currently 488 online users.
» 2 Member(s) | 478 Guest(s)
Facebook, Bing, Google, Applebot, Baidu, AOL, zunebuggy, Gribouillis

Latest Threads
Downloading Page Source F...
Forum: General Coding Help
Last Post: zunebuggy
1 hour ago
» Replies: 0
» Views: 42
raspberry pi in a python ...
Forum: General Coding Help
Last Post: deanhystad
3 hours ago
» Replies: 1
» Views: 65
Having difficulty with th...
Forum: General Coding Help
Last Post: deanhystad
8 hours ago
» Replies: 8
» Views: 249
Python Code Help - pip in...
Forum: General Coding Help
Last Post: Pedroski55
Today, 06:49 AM
» Replies: 3
» Views: 196
Need an alternative to br...
Forum: General Coding Help
Last Post: stevejobb
Today, 02:21 AM
» Replies: 5
» Views: 1,392
ERROR: THESE PACKAGES DO ...
Forum: News and Discussions
Last Post: elliotzucker
Today, 02:10 AM
» Replies: 5
» Views: 2,008
Troubleshooting Jupyter N...
Forum: General Coding Help
Last Post: Drone4four
Yesterday, 10:55 PM
» Replies: 1
» Views: 131
Webscrape script, add to ...
Forum: Web Scraping & Web Development
Last Post: Larz60+
Yesterday, 10:15 PM
» Replies: 1
» Views: 97
3-d surface plotting
Forum: General Coding Help
Last Post: sawtooth500
Yesterday, 09:07 PM
» Replies: 1
» Views: 105
Please Help With Syntax -...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 06:59 PM
» Replies: 4
» Views: 196

 
  Tkinter - Make changes to graph and update it
Posted by: adriancovaci - Apr-08-2019, 09:02 AM - Forum: GUI - No Replies

Basically, I'm making a program which finds the maximum flow of a graph using the Ford-Fulkerson method. The program finds the maximum flow and prints..... More

Print this item

  unable to pass a input after changing the user from root to non root using python
Posted by: avinash - Apr-08-2019, 05:26 AM - Forum: General Coding Help - Replies (3)

In my automation using python am triggering a shell script which takes care of prerequisites to my software installations. Prerequisites am running us..... More

Print this item

  Manipulating Excel with Python.
Posted by: Spacely - Apr-08-2019, 02:19 AM - Forum: General Coding Help - Replies (2)

Hello,

I am new to Py. I need to write data to, read data from, and run a few VBA macros within an excel book. Would rather the book never be opene..... More

Print this item

  Format for elif
Posted by: sunilramakumar - Apr-08-2019, 01:49 AM - Forum: General Coding Help - Replies (4)

Hi - I am new to Python and was attempting to code based on the guidance at https://www.youtube.com/watch?v=8uJFN7OZ...U_3tod0nqo..... More

Print this item

  I need help getting set up for Python
Posted by: FLAJA - Apr-07-2019, 11:59 PM - Forum: General Coding Help - Replies (4)

[size=medium]How do I tell which files I need to download to write Python programs:

https://www.python.org/downloads/release/python-373/ ?

I had..... More

Print this item

  ipython autocomplete broke indentation!
Posted by: Exsul - Apr-07-2019, 10:45 PM - Forum: General Coding Help - Replies (6)

I installed ipython through the pip in order to use autocomplete, and now indentation doesn't work in the regular Python shell (it does still work in ..... More

Print this item

  Where is Popen.pid?
Posted by: jpezz - Apr-07-2019, 10:41 PM - Forum: General Coding Help - Replies (6)

Described in https://docs.python.org/3/library/subprocess.html.

But I run python3 on m..... More

Print this item

  Tkinter project school
Posted by: Kersow - Apr-07-2019, 09:38 PM - Forum: Homework - Replies (2)

Hello / Good evening everyone

I am currently working on a project to realize the HMI (human-machine interaction) indicating to the user the feasibi..... More

Print this item

  ttk.barprogress - root.mainloop
Posted by: francisco_neves2020 - Apr-07-2019, 08:38 PM - Forum: GUI - Replies (11)

[python]
import os
import sys
import tkinter as tk
from tkinter import *
import subprocess
import idlelib
import urllib.request
import ctypes..... More

Print this item

  Confusion with sublcassing a threading class, and inheritance
Posted by: bigmit37 - Apr-07-2019, 08:12 PM - Forum: General Coding Help - Replies (2)

[size=medium]I am trying to understand how to subclass a Thread,
and I am confused with some details of inheritance.
It seems if I want to modify ..... More

Print this item

  how to decode this in python
Posted by: anthoniegallego - Apr-07-2019, 07:39 PM - Forum: Homework - Replies (11)

hi, im fairly new to python and i was wondering how i could finish this code:

[python]import random

def encode_text (text):
random.seed (0)..... More

Print this item

  if clause fails
Posted by: DeadCthulhuWaitsDreaming - Apr-07-2019, 06:34 PM - Forum: General Coding Help - Replies (10)

OK, this shouldn't be that hard but maybe I'm missing something.

This is the full function, the problem lies between the ############################..... More

Print this item

  Error 'object has no attribute' when iterating thru a dictionary
Posted by: mrapple2020 - Apr-07-2019, 06:22 PM - Forum: General Coding Help - Replies (8)

[python]
from collections import defaultdict
arch_dic = {}
arch_dic = defaultdict(list)
arch_dic['PSE2'].append("0/7/CPU0")
arch_dic['PSE2'].appe..... More

Print this item

  How to run python code in Java using remote SSH without py file using streams in Java
Posted by: varanasipavankumar - Apr-07-2019, 06:13 PM - Forum: General Coding Help - No Replies

How to run python code in Java using remote SSH without py file using streams in Java?
How to pass arguments in such a case?

let's say I have to c..... More

Print this item

  Exiting/killing a program with tkinter but leaving the graphic on the screen
Posted by: jpezz - Apr-07-2019, 12:16 PM - Forum: GUI - Replies (3)

I want the opposite of what most people want. I call a python subprogram to put a tk label on the screen. I want that program to terminate itself when..... More

Print this item

  how to add the numbers of a list
Posted by: Pedroski55 - Apr-07-2019, 11:19 AM - Forum: General Coding Help - Replies (2)

I have a list. Each element is either 1 or 0. I want to add them sequentially.

For example:

I have: attendance = [1, 1, 1, 1]

I declare: cumu..... More

Print this item

  Invalid Syntax Error
Posted by: jaycuff13 - Apr-07-2019, 10:22 AM - Forum: General Coding Help - Replies (1)

Hi all,

I am working on a practice script, and I keep receiving an invalid syntax error on my script. Here is the code below. The python hightligh..... More

Print this item

  win32 GetWindowRect for window dimensions
Posted by: MrMajorThorburn - Apr-07-2019, 09:14 AM - Forum: General Coding Help - Replies (3)

I am using win32gui.GetWindowRect for a window I have retrieved the handle for using win32.EnumWindows and matching the title of the window as I see o..... More

Print this item

  Matplotlib 3d voxels animation
Posted by: jasiekkm - Apr-07-2019, 07:44 AM - Forum: General Coding Help - No Replies

What I will asked for is that I would like to animate such an example of matplotlib 3d voxels (https://matplotlib.org/gallery/mplot3d/voxels_numpy_log..... More

Print this item

  I converted string to 'list', but it doesn't look like a list!
Posted by: mrapple2020 - Apr-07-2019, 03:02 AM - Forum: General Coding Help - Replies (3)

Goal: If I find "FP-X" in the string below, I need to retrieve the string on the left of "FP-X" label.
Like retrieve in this example "0/1/CPU0", "0/5..... More

Print this item

  How do I split a large array into smaller sub-arrays?
Posted by: codebeacon - Apr-07-2019, 02:51 AM - Forum: General Coding Help - Replies (3)

Hi,

I was wondering how I could split a large array into smaller chunks?

For example:

[python]
arr = ["hello", "my", "name", "is", "name",..... More

Print this item

  I always get 'None' returned. Confused. What did I miss?
Posted by: jpezz - Apr-07-2019, 01:37 AM - Forum: General Coding Help - Replies (2)

[python]import random


# Morse Code string translator
# delimited with spaces for characters, and / for words
# format example "HELLO WORLD": ....... More

Print this item

  SSL Handshare Errors
Posted by: RebelCoder - Apr-07-2019, 01:27 AM - Forum: Networking - Replies (2)

Hello everyone!

I am trying to access some DB with requests, and this code worked about a month ago:

[python]
print(f"\n[Protein function based..... More

Print this item

  looking fo an expression that yields a dictionary without an item
Posted by: Skaperen - Apr-06-2019, 11:42 PM - Forum: General Coding Help - Replies (5)

i am wanting to make an expression (method call?) that given a dictionary (or set or frozenset), and a hashable value, makes a shallow copy of the dic..... More

Print this item

  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc)
Posted by: ZenWoR - Apr-06-2019, 11:15 PM - Forum: GUI - No Replies

Button reacts like it's pressed... but window's not opened...

New window (with that button) won't open after function (in a Thread Class)...

See..... More

Print this item

  I don't think I understand the basics of tkinter!
Posted by: jpezz - Apr-06-2019, 09:20 PM - Forum: GUI - Replies (6)

The documentation doesn't help!

If I have (forget the variables except the ones I need help with and not all statements are shown):
[python] root ..... More

Print this item

  [split] University Assignment Help needed
Posted by: Nomathemba - Apr-06-2019, 08:30 PM - Forum: Homework - Replies (4)

I am trying the above code for my assignment. It's giving me error message saying invalid syntax. On the second line

Print this item

  Help with regex please
Posted by: mrapple2020 - Apr-06-2019, 08:09 PM - Forum: General Coding Help - Replies (1)

Hello, if possible can someone assist to draft the following regex. I could first retrieve everything after "Outgoing Interface" like I did below. The..... More

Print this item

  Guidance for how to monitor for a change in a bit state from a hex value
Posted by: FP4A - Apr-06-2019, 07:13 PM - Forum: General Coding Help - Replies (3)

Hello,
I am starting to learn Python, but i come from a controls background.
I have a Beaglebone and just for fun i am using a CanOpen interface wit..... More

Print this item

  Help (Syntax error)
Posted by: Vqlk - Apr-06-2019, 06:24 PM - Forum: General Coding Help - Replies (1)

This code is not working:
[python]import time
guess = ''
answer = ''
points = 0
lives = 9
heart = u"\u2661"
def correct():
points += 1
..... More

Print this item

  Visual Studio 2019 and Neuron
Posted by: JamesBrown - Apr-06-2019, 05:12 PM - Forum: GUI - No Replies

I am trying to use VS 2019 Community for Python. I have it up and running but am having trouble loading the NEURON (7.2536.15) package.
It is in my l..... More

Print this item

  Trouble writing over serial
Posted by: EngineerNeil - Apr-06-2019, 05:04 PM - Forum: General Coding Help - Replies (1)

Hello all,

I am trying to get my BeagleBone Black to communicate with a Microcontroller (CC1310 Launchpad) over serial.
When I connect the Microc..... More

Print this item

  Simplifying a rather short code
Posted by: schniefen - Apr-06-2019, 04:38 PM - Forum: Homework - Replies (1)

The code below represents plotting the real and imaginary part of a complex number, given by the function r*np.exp(x*1j), where r and x are fixed in t..... More

Print this item

  Creating a Mindmap program
Posted by: J_Miller - Apr-06-2019, 03:23 PM - Forum: General Coding Help - Replies (3)

Hello !

To go forward in my programming journey I'd like to start some serious practice by creating a mindmap program (..... More

Print this item

  what IDE for windows
Posted by: MrMajorThorburn - Apr-06-2019, 01:49 PM - Forum: News and Discussions - Replies (2)

I have been using AutoHotKey for running a game simulating a player.
This has been reasonably successful but have come up with some problems that I c..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Downloading Page Source F... 1 hour ago zunebuggy zunebuggy General Codin...
  raspberry pi in a python ... 3 hours ago Raysz deanhystad General Codin...
  Having difficulty with th... 8 hours ago sawtooth500 deanhystad General Codin...
  Python Code Help - pip in... Today, 06:49 Splishsplash92 Pedroski55 General Codin...
  Need an alternative to br... Today, 02:21 jmbonni stevejobb General Codin...
  ERROR: THESE PACKAGES DO ... Today, 02:10 subbanaidu elliotzucker News and Disc...
  Troubleshooting Jupyter N... Yesterday, 22:55 Drone4four Drone4four General Codin...
  Webscrape script, add to ... Yesterday, 22:15 jjcooper Larz60+ Web Scraping ...
  3-d surface plotting Yesterday, 21:07 Tuxedo sawtooth500 General Codin...
  Please Help With Syntax -... Yesterday, 18:59 jgbarber65 snippsat General Codin...
  Finding the price based o... Yesterday, 18:57 chandramouliarun marythodge4 General Codin...
Most views
  The best Prog... 493901
  Web Scraping ... 366676
  Tutorial Requ... 355069
  Newbie with P... 297107
  Thread remain... 282271
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 341
deanhystad 315
Most replies
  New Users Int... 432
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11890
buran 8094
snippsat 7137
deanhystad 6322
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
miltontkdal Today
skinnym666 Today
Markrobber Today
e46ds1x Today
stevejobb Today

User Panel Messages

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