PyMS, Mac and Windows compatable Modding Suite


coko
Terran SCV Lube Technician
Terran SCV Lube Technician
Posts: 75
Joined: Sat Apr 25, 2009 6:56 am
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby coko » Mon Apr 27, 2009 6:17 am

Excellent work! Can't wait to have a browse through the source code, been writing python on and off for the last year now, be good to see how good programmers write it!

User avatar

Topic author
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby poiuy_qwert » Mon Apr 27, 2009 1:08 pm

Thanks for the compliments :)


coko
Terran SCV Lube Technician
Terran SCV Lube Technician
Posts: 75
Joined: Sat Apr 25, 2009 6:56 am
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby coko » Sat May 02, 2009 5:54 am

Exception in Tkinter callback
Traceback (most recent call last):
  File "Tkinter.pyc", line 1410, in __call__
  File "Tkinter.pyc", line 495, in callit
  File "Libs\utils.pyc", line 1066, in showtip
TypeError: 'tuple' object does not support item assignment

This happens when trying to show a tooltip. It happens when I try and show the tool tip on my second monitor. If I use it on my first monitor it is fine. Judging from the code I believe it something to do with the fact that something returns as a tuple since there are two monitors rather than a single object?

User avatar

Topic author
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby poiuy_qwert » Sat May 02, 2009 1:07 pm

Odd, I dont have two monitors so I cant test it, but i'll look into it. Thanks.
Edit: I found the problem. Was just my mistake. If you use the source version you can open Libs\utils.py and change that line from:

Code: Select all

         pos = (self.widget.winfo_rootx() + self.widget.winfo_reqwidth(), self.widget.winfo_rooty() + self.widget.winfo_reqheight())

to

Code: Select all

         pos = [self.widget.winfo_rootx() + self.widget.winfo_reqwidth(), self.widget.winfo_rooty() + self.widget.winfo_reqheight()]

Though im not exactly sure how it will work with two monitors, as in will it try and keep the tooltip on the first monitor or not?
Last edited by poiuy_qwert on Sat May 02, 2009 1:14 pm, edited 1 time in total.


coko
Terran SCV Lube Technician
Terran SCV Lube Technician
Posts: 75
Joined: Sat Apr 25, 2009 6:56 am
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby coko » Sat May 02, 2009 6:28 pm

I'll try and test it out, I just require PIL and 2.5.x right?

User avatar

Topic author
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby poiuy_qwert » Sat May 02, 2009 7:35 pm

Yep. Thanks!


coko
Terran SCV Lube Technician
Terran SCV Lube Technician
Posts: 75
Joined: Sat Apr 25, 2009 6:56 am
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby coko » Sun May 03, 2009 5:04 am

It appears in the corner of the main monitor. So no longer crashes but doesn't work as intended obviously.

User avatar

Topic author
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby poiuy_qwert » Sun May 03, 2009 10:59 am

I see... hm.... Well as far as I can tell there is no way for me to tell if things are on the first monitor or the second, so my code which keeps the tooltip "on screen", keeps it on the first monitor. I'll look into it more when I get home.


coko
Terran SCV Lube Technician
Terran SCV Lube Technician
Posts: 75
Joined: Sat Apr 25, 2009 6:56 am
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby coko » Sun May 03, 2009 3:28 pm

Ok, I'll see if I can find anything else, though I am not modding presently.

User avatar

Topic author
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby poiuy_qwert » Sun May 31, 2009 9:04 pm

Well there havn't been any new bugs/ideas for a while, so I will be releasing the next version REAL soon, most likely when I finish the first version of PyMPQ. On that note, here are updated screenshots of PyMPQ:
Image
Image

User avatar

Topic author
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby poiuy_qwert » Wed Jun 03, 2009 10:44 pm

Ok I've released PyMS v1.2.1, and the important features of the release are:
- Added PyMPQ
- Added a find window in PyICE
- Fixed many bugs
- Made PyTRG's loading faster as well as added RawCond and RawAct for easy raw condition and action creation

User avatar

Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6532
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet
Contact:
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby Lavarinth » Thu Jun 04, 2009 12:02 pm

High-five!
- - Lavarinth
Campaign Creations Administrator

User avatar

Topic author
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby poiuy_qwert » Thu Jun 04, 2009 2:16 pm

High-five!

Low-five!

Too slow!

User avatar

Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6532
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet
Contact:
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby Lavarinth » Thu Jun 04, 2009 6:15 pm

:'(
- - Lavarinth
Campaign Creations Administrator

User avatar

Topic author
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:
Status: Offline

Re: PyMS, Mac and Windows compatable Modding Suite

Postby poiuy_qwert » Fri Jun 05, 2009 12:35 pm

I'll go slower next time :(


Return to “StarCraft Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests