mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-15 17:20:07 +01:00
Squash - cleanup imports
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
import etgtools
|
||||
import etgtools.tweaker_tools as tools
|
||||
from etgtools import MethodDef
|
||||
import etgtools.tweaker_tools
|
||||
|
||||
PACKAGE = "wx"
|
||||
MODULE = "_core"
|
||||
@@ -44,7 +43,7 @@ def run():
|
||||
|
||||
# Allow on-the-fly creation of a wx.BitmapBundle from a wx.Bitmap, wx.Icon
|
||||
# or a wx.Image
|
||||
c.convertFromPyObject = etgtools.tweaker_tools.AutoConversionInfo(
|
||||
c.convertFromPyObject = tools.AutoConversionInfo(
|
||||
('wx.Bitmap', 'wx.Icon', ),
|
||||
"""\
|
||||
// Check for type compatibility
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
import etgtools
|
||||
import etgtools.tweaker_tools as tools
|
||||
import etgtools.tweaker_tools
|
||||
|
||||
PACKAGE = "wx"
|
||||
MODULE = "_core"
|
||||
@@ -193,7 +192,7 @@ def run():
|
||||
# String with color name or #RRGGBB or #RRGGBBAA format
|
||||
# None (converts to wxNullColour)
|
||||
c.allowNone = True
|
||||
c.convertFromPyObject = etgtools.tweaker_tools.AutoConversionInfo(
|
||||
c.convertFromPyObject = tools.AutoConversionInfo(
|
||||
('wx.Colour', '_ThreeInts', '_FourInts', 'str', 'None'),
|
||||
"""\
|
||||
// is it just a typecheck?
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
import etgtools
|
||||
import etgtools.tweaker_tools as tools
|
||||
import etgtools.tweaker_tools
|
||||
|
||||
PACKAGE = "wx"
|
||||
MODULE = "_propgrid"
|
||||
@@ -71,7 +70,7 @@ def run():
|
||||
|
||||
c.find('GetPtr').overloads[0].ignore()
|
||||
|
||||
c.convertFromPyObject = etgtools.tweaker_tools.AutoConversionInfo(
|
||||
c.convertFromPyObject = tools.AutoConversionInfo(
|
||||
('str', 'None', ),
|
||||
"""\
|
||||
// Code to test a PyObject for compatibility with wxPGPropArgCls
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
import etgtools
|
||||
import etgtools.tweaker_tools as tools
|
||||
import etgtools.tweaker_tools
|
||||
|
||||
PACKAGE = "wx"
|
||||
MODULE = "_core"
|
||||
@@ -77,7 +76,7 @@ def run():
|
||||
c.includeCppCode('src/stream_input.cpp')
|
||||
|
||||
# Use that class for the convert code
|
||||
c.convertFromPyObject = etgtools.tweaker_tools.AutoConversionInfo(
|
||||
c.convertFromPyObject = tools.AutoConversionInfo(
|
||||
(), # TODO: Track down what python types actually can be wrapped
|
||||
"""\
|
||||
// is it just a typecheck?
|
||||
@@ -239,7 +238,7 @@ def run():
|
||||
c.includeCppCode('src/stream_output.cpp')
|
||||
|
||||
# Use that class for the convert code
|
||||
c.convertFromPyObject = etgtools.tweaker_tools.AutoConversionInfo(
|
||||
c.convertFromPyObject = tools.AutoConversionInfo(
|
||||
(), # TODO: Track down what python types can actually be converted
|
||||
"""\
|
||||
// is it just a typecheck?
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
import etgtools
|
||||
import etgtools.tweaker_tools as tools
|
||||
import etgtools.tweaker_tools
|
||||
|
||||
PACKAGE = "wx"
|
||||
MODULE = "_core"
|
||||
@@ -312,7 +311,7 @@ def run():
|
||||
|
||||
# Add some code (like MappedTypes) to automatically convert from a Python
|
||||
# datetime.date or a datetime.datetime object
|
||||
c.convertFromPyObject = etgtools.tweaker_tools.AutoConversionInfo(
|
||||
c.convertFromPyObject = tools.AutoConversionInfo(
|
||||
('datetime', 'date', ),
|
||||
"""\
|
||||
// Code to test a PyObject for compatibility with wxDateTime
|
||||
|
||||
Reference in New Issue
Block a user