This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class CellSignalStrength { | |
public static final int SIGNAL_STRENGTH_NONE_OR_UNKNOWN = 0; | |
public static final int SIGNAL_STRENGTH_POOR = 1; | |
public static final int SIGNAL_STRENGTH_MODERATE = 2; | |
public static final int SIGNAL_STRENGTH_GOOD = 3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import time | |
import threading | |
import logging | |
try: | |
import tkinter as tk # Python 3.x | |
import tkinter.scrolledtext as ScrolledText | |
except ImportError: | |
import Tkinter as tk # Python 2.x | |
import ScrolledText |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Built-in modules | |
import logging | |
import Tkinter | |
import threading | |
class TextHandler(logging.Handler): | |
"""This class allows you to log to a Tkinter Text or ScrolledText widget""" | |
def __init__(self, text): |