• Member Avatar for ZZucker
    ZZucker

    Created Python Challenges

    Challenge: change the code so that only .py and .txt files of a given directory are listed. ''' filename_list_given_dir1.py use module glob to list all the filenames of .jpg files …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in pygame and Tkinter

    If pygame and tkinter have event loops, then you have to use threading to separate them.
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Python ideas.

    ''' filename_list_given_dir1.py use module glob to list all the filenames of .jpg files or any extension(s) you specify in a given directory ''' import glob import os # all files …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Randint number into a Dict

    A defaultdictionary is another possibility: ''' defaultdict-random_integers.py shows index of random integers in the form random_integer: list_of_indexes ''' import random as rn import collections as co size = 100 low …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Python Caeser Shift - Small Question

    Python's double-ended queue called deque in module collections has a method rotate() that is ideal for that sort of thing.
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Can't figure out how to format questions in Tkinter

    This might give you some important hints about GUI programming: ''' tk_Entry_input101.py explore multiple tkinter Entry() for inputs note: Python2 uses Tkinter Python3 uses tkinter ''' # Python3 import tkinter …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Randint number into a Dict

    This simple example might give you enough hints to get going: import random as rn import collections as co size = 100 low = 0 high = 100 mylist = …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Need help trying to get information to display correctly using graphics

    You might have to use the setText() method like this: # blank out old text first correctMessage.setText(" ") correctMessage.draw(self.win) correctMessage.setText("Correct!") correctMessage.draw(self.win)
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Randint number into a Dict

    An ordered dictionary remembers its insertion order.
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in How to set image as background using Python 3.4?

    Here is a typical example: ''' tk_BGImage1.py use a Tkinter label as a panel/frame with a background image (note that Tkinter without PIL reads only GIF and PGM/PPM images) modified …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in python2.7 transparent frame

    This might help: # use opacity alpha values from 0.0 to 1.0 # opacity/tranparency applies to image and root frame root.wm_attributes('-alpha', 0.7)
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in [tkinter]using "destroy()" methode still runs and produces error logs

    destroy() is used to destroy a particular window in a multiwindow program you have to give all the Tk windows a unique name
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Dictionary from a text file

    Here is a hint ... ''' filename_list_given_dir1.py use module glob to list all the filenames of .jpg files or any extension(s) you specify in a given directory ''' import glob …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Learning Issue with Programming Languages

    Not sure what's going on, but DaniWeb is loaded with popups today!
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in What are you eating/drinking right now?

    Ginger? Lucky girl.
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in named colors in wxpython

    Here you go: ''' wx_colourdb_show1.py show the colours in wxPython's wx.lib.colourdb the database has 630 named colors use wx.lib.scrolledpanel.ScrolledPanel and wx.GridSizer to show the colours and their names Python 2.7.5 …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in if statment

    Should be: if (temperature > 35) { // do something } else if (temperature >= 27) { // do something else } else { // do something else }
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in if else C

    Replace `system("Pause");` with `getchar(); // wait`
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Would you like to live for 1000 years?

    I wonder if computers need to put up with humans 1000 years from now?
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in The last song you heard/ listened to

    ‘Auld Lang Syne’
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in There is an elephant on the loo!

    ‘Auld Lang Syne’, is a Scottish song. It was written by Robert Burns in the 1700's, literally meaning "old long ago," or simply, "the good old days", to remember old …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in There is an elephant on the loo!

    New Year is the oldest of all holidays, as it was first observed in ancient Babylon as many as 4000 years ago.
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in we lose a good and nice man paul walker

    The news just reported that the Porsche these dummkopfs were driving went over 100 miles/hour in a residential area.
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in How is the weather today in your country?

    Sunny and warm in the Southwest (CalNevAri). Very cold and snowy in the Northeast. I heard there will be a windchill of -70 degF in Minnesota! That means your spit …
  • Member Avatar for ZZucker
    ZZucker

    Replied To a Post in Tkinter GUI help please

    There ar three basic ways to load and display an image with Tkinter: 1) from an image file you have, GIF is native any other file format needs PIL see …

The End.