Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Error when refering to class defined in 'main' in an imported module
Post: RE: Error when refering to class defined in 'main'...

(Apr-13-2021, 07:00 PM)Yoriz Wrote: Yes create it in one module and import it from that module into anywhere you want to use it. Thank you for your reply! But it turns out that this is not really ne...
HeRo General Coding Help 2 2,376 Apr-13-2021, 07:22 PM
    Thread: Error when refering to class defined in 'main' in an imported module
Post: Error when refering to class defined in 'main' in ...

Hi! In my 'main.py' I have this: class ScalableLabel(Label): pass from sharebox_ios_etc import ShareBoxAnd in 'sharebox_ios_etc.py' I have this: class ShareBox(ScalableLabel):But that line pro...
HeRo General Coding Help 2 2,376 Apr-13-2021, 06:39 PM
    Thread: random.shuffle(list) produces empty list - why?
Post: RE: random.shuffle(list) produces empty list - why...

(Oct-16-2016, 06:32 PM)sparkz_alot Wrote: Quote:I can add that I use Python 3.5 (32-bit) through PyCharm Professional 2016.2.3 on Windows 10 64-bit.  May I ask why you are using 32 bit Python on a ...
HeRo General Coding Help 7 7,864 Oct-17-2016, 11:03 AM
    Thread: random.shuffle(list) produces empty list - why?
Post: RE: random.shuffle(list) produces empty list - why...

OK! That makes sense! Thank you very much! - Henrik
HeRo General Coding Help 7 7,864 Oct-16-2016, 06:27 PM
    Thread: random.shuffle(list) produces empty list - why?
Post: RE: random.shuffle(list) produces empty list - why...

(Oct-16-2016, 05:32 PM)Yoriz Wrote: random.shuffle changes the list in place instead of returning a shuffled list. Thank you for your reply! English is not my mother tongue, so what do you mean by ...
HeRo General Coding Help 7 7,864 Oct-16-2016, 05:42 PM
    Thread: random.shuffle(list) produces empty list - why?
Post: random.shuffle(list) produces empty list - why?

Hi In the sample program I have attached below I first use SelectedTargets = random.sample(TargetPool, NoOfTargetsToSelect) to draw out some of the items from a list. Then I want to shuffle that list...
HeRo General Coding Help 7 7,864 Oct-16-2016, 05:15 PM

User Panel Messages

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