PyMS, Mac and Windows compatable Modding Suite

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

Re: PyMS, Mac and Windows compatable Modding Suite

Post by coko »

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
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:

Re: PyMS, Mac and Windows compatable Modding Suite

Post by poiuy_qwert »

Thanks for the compliments :)
[align=center][url=http://www.modcrafters.com][imgwh 400x75]http://www.modcrafters.com/images/sig_logo.png[/imgwh][/url]
[url=http://www.modcrafters.com/wiki/index.php?title=PyMS]PyMS[/url] ([url=http://www.broodwarai.com/forums/index.php?showforum=40]Forums[/url]/[url=http://www.campaigncreations.org/forum/index.php?topic=877.0]Local[/url]) | [url=http://www.broodwarai.com/forums/index.php?showtopic=709&view=getnewpost]ProTRG[/url] ([url=http://www.campaigncreations.org/forum/index.php?topic=2214.0]Local[/url]) | [url=http://www.staredit.net/topic/4540/]LocUnlock[/url][/align]
coko
Terran SCV Lube Technician
Terran SCV Lube Technician
Posts: 75
Joined: Sat Apr 25, 2009 6:56 am

Re: PyMS, Mac and Windows compatable Modding Suite

Post by coko »

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
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:

Re: PyMS, Mac and Windows compatable Modding Suite

Post by poiuy_qwert »

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.
[align=center][url=http://www.modcrafters.com][imgwh 400x75]http://www.modcrafters.com/images/sig_logo.png[/imgwh][/url]
[url=http://www.modcrafters.com/wiki/index.php?title=PyMS]PyMS[/url] ([url=http://www.broodwarai.com/forums/index.php?showforum=40]Forums[/url]/[url=http://www.campaigncreations.org/forum/index.php?topic=877.0]Local[/url]) | [url=http://www.broodwarai.com/forums/index.php?showtopic=709&view=getnewpost]ProTRG[/url] ([url=http://www.campaigncreations.org/forum/index.php?topic=2214.0]Local[/url]) | [url=http://www.staredit.net/topic/4540/]LocUnlock[/url][/align]
coko
Terran SCV Lube Technician
Terran SCV Lube Technician
Posts: 75
Joined: Sat Apr 25, 2009 6:56 am

Re: PyMS, Mac and Windows compatable Modding Suite

Post by coko »

I'll try and test it out, I just require PIL and 2.5.x right?
User avatar
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:

Re: PyMS, Mac and Windows compatable Modding Suite

Post by poiuy_qwert »

Yep. Thanks!
[align=center][url=http://www.modcrafters.com][imgwh 400x75]http://www.modcrafters.com/images/sig_logo.png[/imgwh][/url]
[url=http://www.modcrafters.com/wiki/index.php?title=PyMS]PyMS[/url] ([url=http://www.broodwarai.com/forums/index.php?showforum=40]Forums[/url]/[url=http://www.campaigncreations.org/forum/index.php?topic=877.0]Local[/url]) | [url=http://www.broodwarai.com/forums/index.php?showtopic=709&view=getnewpost]ProTRG[/url] ([url=http://www.campaigncreations.org/forum/index.php?topic=2214.0]Local[/url]) | [url=http://www.staredit.net/topic/4540/]LocUnlock[/url][/align]
coko
Terran SCV Lube Technician
Terran SCV Lube Technician
Posts: 75
Joined: Sat Apr 25, 2009 6:56 am

Re: PyMS, Mac and Windows compatable Modding Suite

Post by coko »

It appears in the corner of the main monitor. So no longer crashes but doesn't work as intended obviously.
User avatar
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:

Re: PyMS, Mac and Windows compatable Modding Suite

Post by poiuy_qwert »

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.
[align=center][url=http://www.modcrafters.com][imgwh 400x75]http://www.modcrafters.com/images/sig_logo.png[/imgwh][/url]
[url=http://www.modcrafters.com/wiki/index.php?title=PyMS]PyMS[/url] ([url=http://www.broodwarai.com/forums/index.php?showforum=40]Forums[/url]/[url=http://www.campaigncreations.org/forum/index.php?topic=877.0]Local[/url]) | [url=http://www.broodwarai.com/forums/index.php?showtopic=709&view=getnewpost]ProTRG[/url] ([url=http://www.campaigncreations.org/forum/index.php?topic=2214.0]Local[/url]) | [url=http://www.staredit.net/topic/4540/]LocUnlock[/url][/align]
coko
Terran SCV Lube Technician
Terran SCV Lube Technician
Posts: 75
Joined: Sat Apr 25, 2009 6:56 am

Re: PyMS, Mac and Windows compatable Modding Suite

Post by coko »

Ok, I'll see if I can find anything else, though I am not modding presently.
User avatar
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:

Re: PyMS, Mac and Windows compatable Modding Suite

Post by poiuy_qwert »

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:
[imgwh 640x473]http://i39.tinypic.com/2r58g74.png[/imgwh]
[imgwh 640x442]http://i42.tinypic.com/117z98l.png[/imgwh]
[align=center][url=http://www.modcrafters.com][imgwh 400x75]http://www.modcrafters.com/images/sig_logo.png[/imgwh][/url]
[url=http://www.modcrafters.com/wiki/index.php?title=PyMS]PyMS[/url] ([url=http://www.broodwarai.com/forums/index.php?showforum=40]Forums[/url]/[url=http://www.campaigncreations.org/forum/index.php?topic=877.0]Local[/url]) | [url=http://www.broodwarai.com/forums/index.php?showtopic=709&view=getnewpost]ProTRG[/url] ([url=http://www.campaigncreations.org/forum/index.php?topic=2214.0]Local[/url]) | [url=http://www.staredit.net/topic/4540/]LocUnlock[/url][/align]
User avatar
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:

Re: PyMS, Mac and Windows compatable Modding Suite

Post by poiuy_qwert »

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
[align=center][url=http://www.modcrafters.com][imgwh 400x75]http://www.modcrafters.com/images/sig_logo.png[/imgwh][/url]
[url=http://www.modcrafters.com/wiki/index.php?title=PyMS]PyMS[/url] ([url=http://www.broodwarai.com/forums/index.php?showforum=40]Forums[/url]/[url=http://www.campaigncreations.org/forum/index.php?topic=877.0]Local[/url]) | [url=http://www.broodwarai.com/forums/index.php?showtopic=709&view=getnewpost]ProTRG[/url] ([url=http://www.campaigncreations.org/forum/index.php?topic=2214.0]Local[/url]) | [url=http://www.staredit.net/topic/4540/]LocUnlock[/url][/align]
User avatar
Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6539
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet

Re: PyMS, Mac and Windows compatable Modding Suite

Post by Lavarinth »

High-five!
- - Lavarinth
Campaign Creations Administrator
User avatar
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:

Re: PyMS, Mac and Windows compatable Modding Suite

Post by poiuy_qwert »

High-five!

Low-five!

Too slow!
[align=center][url=http://www.modcrafters.com][imgwh 400x75]http://www.modcrafters.com/images/sig_logo.png[/imgwh][/url]
[url=http://www.modcrafters.com/wiki/index.php?title=PyMS]PyMS[/url] ([url=http://www.broodwarai.com/forums/index.php?showforum=40]Forums[/url]/[url=http://www.campaigncreations.org/forum/index.php?topic=877.0]Local[/url]) | [url=http://www.broodwarai.com/forums/index.php?showtopic=709&view=getnewpost]ProTRG[/url] ([url=http://www.campaigncreations.org/forum/index.php?topic=2214.0]Local[/url]) | [url=http://www.staredit.net/topic/4540/]LocUnlock[/url][/align]
User avatar
Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6539
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet

Re: PyMS, Mac and Windows compatable Modding Suite

Post by Lavarinth »

:'(
- - Lavarinth
Campaign Creations Administrator
User avatar
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:

Re: PyMS, Mac and Windows compatable Modding Suite

Post by poiuy_qwert »

I'll go slower next time :(
[align=center][url=http://www.modcrafters.com][imgwh 400x75]http://www.modcrafters.com/images/sig_logo.png[/imgwh][/url]
[url=http://www.modcrafters.com/wiki/index.php?title=PyMS]PyMS[/url] ([url=http://www.broodwarai.com/forums/index.php?showforum=40]Forums[/url]/[url=http://www.campaigncreations.org/forum/index.php?topic=877.0]Local[/url]) | [url=http://www.broodwarai.com/forums/index.php?showtopic=709&view=getnewpost]ProTRG[/url] ([url=http://www.campaigncreations.org/forum/index.php?topic=2214.0]Local[/url]) | [url=http://www.staredit.net/topic/4540/]LocUnlock[/url][/align]
Post Reply