Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Ping Code Problem
Post: RE: Ping Code Problem

Done some more research on this and i am lead to believe that "Host Unreachable" returns as ==0 even though the ping wasn't actually successful (Still dont really understand why this is ?) If this is...
MTom5 General Coding Help 1 2,772 Sep-04-2018, 09:58 PM
    Thread: Ping Code Problem
Post: Ping Code Problem

I have the following block of code which i use to Ping multiple addresses AN_Sel_State = var4.get() if (AN_Sel_State == 1): if(s.call(["ping", Output_IP_Address_AN])==0): ...
MTom5 General Coding Help 1 2,772 Sep-04-2018, 06:33 AM
    Thread: If statement variable not defined
Post: RE: If statement variable not defined

(Sep-03-2018, 02:24 PM)ichabod801 Wrote: Neither your if nor your elif trigger, so you never actually define Online_Status, and when you start checking the month, that's when you get the error. The...
MTom5 General Coding Help 3 6,779 Sep-03-2018, 02:41 PM
    Thread: If statement variable not defined
Post: If statement variable not defined

I cannot get this bit of code working if ({Status} == "Y"): Online_Status = 1 elif ({Status} == "N"): Online_Status = 0Get error saying Online_Status not defined but i have defined it in the ...
MTom5 General Coding Help 3 6,779 Sep-03-2018, 01:52 PM
    Thread: Storing the result of a input field
Post: RE: Storing the result of a input field

#Import Panda module for Excel interogation import pandas as pd #Import TKinter module for GUI import tkinter as tk from tkinter import messagebox from tkinter import * #Create GUI Screen TCM = Tk() ...
MTom5 Data Science 2 2,262 Sep-02-2018, 10:19 PM
    Thread: Storing the result of a input field
Post: Storing the result of a input field

I have an input field for a filepath in my script so the user can direct the script to a required spreadsheets location. As this filepath is different PC to PC I want to store the last entered filepa...
MTom5 Data Science 2 2,262 Sep-02-2018, 10:04 PM
    Thread: TkInter toggle Label on/off
Post: TkInter toggle Label on/off

How can i get a TkInter Label to toggle on off? the toggle on works the label isnt visable upon start and then appears when the checkbutton is pressed (=1), however when the button is pressed again (=...
MTom5 GUI 2 5,415 Aug-14-2018, 07:27 PM
    Thread: TkInter Setting Out Project
Post: TkInter Setting Out Project

Teaching myself Python i struggled to keep engaged with the apples pears oranges 1 2 3 excercises/examples and decided i would try an make a practical and useful program/tool for myself while learning...
MTom5 GUI 1 2,236 Aug-14-2018, 03:42 PM
    Thread: Pass 2x Variables from Function to another Function
Post: RE: Pass 2x Variables from Function to another Fun...

(Aug-14-2018, 01:52 PM)buran Wrote: def function1(): var1 = 1 var2 = 5 result = function2(var1, var2) print(result) def function2(num1, num2): return num1 + num2 function1(...
MTom5 General Coding Help 3 2,795 Aug-14-2018, 02:39 PM
    Thread: Pass 2x Variables from Function to another Function
Post: Pass 2x Variables from Function to another Functio...

I am trying to avoid using Global variables to solve the problem i am having of passing 2 variables from one function to another function. Function 1 is an 'Accept Button' taking some user input info...
MTom5 General Coding Help 3 2,795 Aug-14-2018, 01:44 PM
    Thread: Code to change LAN Settings
Post: Code to change LAN Settings

I need to change LAN settings within IE and LAN adapter settings as part of my script but cannot get it working. I have a Batch file that currently does this that is called from my Python program but ...
MTom5 Networking 0 3,458 Aug-12-2018, 09:18 PM
    Thread: Output variables from a list
Post: Output variables from a list

I have the following code that uses Pandas and filters an excel spreadsheet containing IP Addresses. The code filters the spreadsheet and narrows it down to 2 rows and then prints the result. How do ...
MTom5 Data Science 2 2,080 Aug-12-2018, 08:53 PM

User Panel Messages

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